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

Month and weekday arithmetic methods #596

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

HubertK05
Copy link
Contributor

This PR includes:

  • nth_prev() method for Weekday,
  • nth_prev() and nth_next() methods for Month,
  • tests for methods listed above.

Closes #593.

+ nth_prev() method for Weekday
+ nth_prev() and nth_next() methods for Month
+ tests for methods listed above
@codecov
Copy link

codecov bot commented Jul 8, 2023

Codecov Report

Merging #596 (af0a076) into main (52e5cee) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@          Coverage Diff          @@
##            main    #596   +/-   ##
=====================================
  Coverage   95.7%   95.8%           
=====================================
  Files         79      79           
  Lines       8818    8867   +49     
=====================================
+ Hits        8443    8492   +49     
  Misses       375     375           
Impacted Files Coverage Δ
time/src/month.rs 100.0% <100.0%> (ø)
time/src/weekday.rs 100.0% <100.0%> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@jhpratt
Copy link
Member

jhpratt commented Jul 8, 2023

Looks great. Thank you!

@jhpratt jhpratt merged commit 8414f33 into time-rs:main Jul 8, 2023
21 checks passed
@HubertK05 HubertK05 deleted the months-and-weekdays branch July 12, 2023 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Advanced date arithmetic functionality
2 participants