-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Week number is not taken into account during date creation in strptime
#254
Comments
moreover, it seems even incorrect week numbers are not caught: $ jq -n '"2024, 99" | strptime("%Y, %W") | strftime("%Y-%m-%d")'
jq: error (at <unknown>): date "2024, 99" does not match format "%Y, %W"
$ gojq -n '"2024, 99" | strptime("%Y, %W") | strftime("%Y-%m-%d")'
"2024-01-01" |
ah, this (from |
I have implemented parsing support for week numbers locally, will soon push to the repository. |
I have created a branch building with the latest timefmt-go with week number support, you can download the artifacts from here. |
Resolved by 1324e6e. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like gojq ignores the week number during
strptime
while JQ uses it for the output date:The text was updated successfully, but these errors were encountered: