We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
perl -e 'use Time::Piece; print Time::Piece->strptime("2021 47 1","%Y %W %w");' should output 2021-11-22, but outputs 2021-01-01
perl -e 'use Time::Piece; print Time::Piece->strptime("2021 47 1","%Y %W %w");'
using the same with C
#define _XOPEN_SOURCE #include <stdio.h> #include <time.h> int main(void) { struct tm t; printf("%s\n", strptime("2021 47 1", "%Y %W %w", &t)); printf("%d-%02d-%02d\n", 1900+t.tm_year, t.tm_mon+1, t.tm_mday); }
outputs 2021-11-22
It seems the _strptime in Piece.xs is improperly implemented.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
perl -e 'use Time::Piece; print Time::Piece->strptime("2021 47 1","%Y %W %w");'
should output 2021-11-22, but outputs 2021-01-01
using the same with C
outputs 2021-11-22
It seems the _strptime in Piece.xs is improperly implemented.
The text was updated successfully, but these errors were encountered: