-
Notifications
You must be signed in to change notification settings - Fork 526
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
Add elapsed_years
to Date
and DateTime
#557
Merged
Merged
Changes from 30 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
4d87d7f
Add elapsed_years() to Date
yozhgoor b3ee278
Add elapsed_years() to DateTime
yozhgoor a493f26
Add elapsed_years() to NaiveDateTime
yozhgoor 54274a2
Oops
yozhgoor fb25a77
Add elapsed_years() to NaiveDateTime
yozhgoor f059cb3
WIP
yozhgoor a5ce0b9
Remove elapsed_years from naive Date and DateTime
yozhgoor 73eac80
Add a consts module with WEEK_PER_YEAR
yozhgoor 351c1cf
Add better tests
yozhgoor 767f87a
Change variable name
yozhgoor 6d569fb
Clean up
yozhgoor 6ab485a
Clean up
yozhgoor 5d1af60
Update changelog and authors
yozhgoor cab008d
Replace the Utc use by the timezone of the Date
yozhgoor f676c1f
Clean up
yozhgoor 4c52ec7
Adapt changelog
yozhgoor 5e3eba3
Update src/lib.rs
yozhgoor bd6a7a7
Update src/lib.rs
yozhgoor 3006303
Update CHANGELOG.md
yozhgoor 520d83e
Merge branch 'main' into elapsed-years
Milo123459 3fa7eaa
Update CHANGELOG.md
Milo123459 a069d56
Update src/datetime.rs
Milo123459 a4a026a
Update
yozhgoor d82afcf
Use the clock feature when using `Utc::now` and `Utc::today`
yozhgoor b467923
Merge branch 'main' into elapsed-years
yozhgoor 7816be1
New blank line at EOF
yozhgoor 5a90aff
Merge branch 'elapsed-years' of github.com:yozhgoor/chrono into elaps…
yozhgoor ba17106
Merge branch 'main' into elapsed-years
yozhgoor 81fabab
Move the code from `datetime.rs` to `datetime/mod.rs` and delete `dat…
yozhgoor d893578
Clean up
yozhgoor 83aab1a
After review
yozhgoor 07f1e43
Add `crate::` to the use statement
yozhgoor 22945a2
Replace `TryFrom`
yozhgoor 492c802
Merge branch 'main' into elapsed-years
yozhgoor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consistency with other's function docs