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

Support day of year (%j) in Time parsers #11791

Merged

Conversation

HertzDevil
Copy link
Contributor

This includes Time::Format#parse and everything that depends on it, such as Time.parse and JSON deserialization.

Day of year has higher priority over month + day, but lower priority over week date (%G %V %u). The latter is unlikely to cause problems, since day of year and week date in the same string is very unlikely to happen.

@oprypin oprypin self-requested a review February 26, 2022 13:21
Copy link
Member

@beta-ziliani beta-ziliani left a comment

Choose a reason for hiding this comment

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

🚀

@beta-ziliani beta-ziliani added this to the 1.4.0 milestone Mar 2, 2022
@oprypin oprypin removed their request for review March 2, 2022 16:42
@straight-shoota straight-shoota merged commit 4f8b306 into crystal-lang:master Mar 3, 2022
@HertzDevil HertzDevil deleted the feature/time-parse-day-of-year branch March 5, 2022 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants