Closed amesgen closed 2 years ago
Consider
$ echo '"2022-04-12T14:34:13.55Z"' | gojq 'strptime("%Y-%m-%dT%H:%M:%S.%fZ") | mktime' 1649774053
I think it would be useful if this could return 1649774053.55 (or if there was an alternative to mktime which did). It can be emulated with
1649774053.55
mktime
$ echo '"2022-04-12T14:34:13.55Z"' | gojq 'strptime("%Y-%m-%dT%H:%M:%S.%fZ") | (mktime + .[5] - (.[5] | floor))' 1649774053.55
which is a bit convoluted.
This is already supported in the HEAD version.
Excellent, thanks, closing then!
Consider
I think it would be useful if this could return
1649774053.55
(or if there was an alternative tomktime
which did). It can be emulated withwhich is a bit convoluted.