-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The additions in this commit are dependent upon as-yet unreleased Chrono functionality, which will arrive in Chrono 0.4.32. Specifically, this PR has been merged, allowing inspection of the internal quantity of Months: chronotope/chrono#1373 Due to the Chrono maintainers preferring Months.as_u32(), this commit adds Duration-style convenience methods as an external extension to the chrono::Months type. - Added num_months() and num_years() to extend chrono::Months. - Added tests and documentation.
- Loading branch information
1 parent
5e4c90f
commit 9d25961
Showing
3 changed files
with
63 additions
and
2 deletions.
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