Skip to content
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

Move to ciso8601 for datetime #5692

Merged
merged 4 commits into from
Aug 3, 2022
Merged

Move to ciso8601 for datetime #5692

merged 4 commits into from
Aug 3, 2022

Conversation

amanda11
Copy link
Contributor

@amanda11 amanda11 commented Jul 29, 2022

Problems using udatetime on python3.9 and it isn't supported.
It was proposed that ciso8601 is used instead.

Relates to #5346

@pull-request-size pull-request-size bot added the size/S PR that changes 10-29 lines. Very easy to review. label Jul 29, 2022
@amanda11
Copy link
Contributor Author

I've brought up a python 3.8 RockyLinux ST2 using this change, and added some debugging to check that it didn't fall through to the catchall of using standard datetime.
I also did a quick check that I could install ciso8601 on Rocky 8 under python3.9 - and then perform a ciso8601.parse_datetime to check it also worked on python3.9.

I haven't done any benchmarking but the benchmarking of ciso8601 compared to udatetime compared to native python is available on other sites. It generally is much better than native python but not quite as quick as udatetime.

@amanda11 amanda11 added this to the 3.8.0 milestone Jul 29, 2022
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome

@cognifloyd cognifloyd requested a review from a team August 3, 2022 00:40
@punkrokk
Copy link
Member

punkrokk commented Aug 3, 2022

Just to be clear - you mean ISO8601, correct?

@cognifloyd
Copy link
Member

cognifloyd commented Aug 3, 2022

ISO8601 is the standard ciso8601 is the python library

@cognifloyd cognifloyd merged commit 6cab171 into master Aug 3, 2022
@cognifloyd cognifloyd deleted the replace_time branch August 3, 2022 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external dependency python3 size/S PR that changes 10-29 lines. Very easy to review.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants