Skip to content

Conversation

clarfonthey
Copy link

This adds the method described in #201.

/// assert_eq!(Mon.days_since(Mon), 0);
/// assert_eq!(Sun.days_since(Tue), 5);
/// ```
pub fn days_since(&self, other: Weekday) -> u32 {
Copy link

Choose a reason for hiding this comment

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

Should this be inlined?

@clarfonthey
Copy link
Author

Closing this because it's been a while and I don't have much time to work on this. Anyone else can add it if they want.

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.

2 participants