-
-
Notifications
You must be signed in to change notification settings - Fork 384
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_of_month in pendulum_parse for Timestamp '2021-01-15 14:00:00' returns -50 #587
Labels
Comments
I looked a bit into it. Seems like Jan 1 2021 is defined as 5th weekday of the 53rd week of 2020. And this is a "problem" with the datetime module. |
This was referenced Dec 10, 2021
Closed
2 tasks
This is an issue in 2023 as well >>> pendulum.instance(datetime(2023, 1, 2, 0, 0)).week_of_month
-50 using This library is used in Airflow so I imagine more people will encounter it |
Using >>> import pendulum
>>> pendulum.DateTime(2023, 1, 2).week_of_month
-50 |
2 tasks
2 tasks
sdispater
added a commit
that referenced
this issue
Dec 14, 2023
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
week_of_month in pendulum_parse for Timestamp '2021-01-15 14:00:00' returns -50
Sample code:
import pendulum
x='2021-01-15 14:00:00'
dt=pendulum.parse(x)
print(dt.week_of_month)
Output result -50
The text was updated successfully, but these errors were encountered: