pub const fn days_in_month(self, year: u32) -> u8 {
        match self {
            Self::Jan | Self::Mar | Self::May | Self::Jul | Self::Aug | Self::Oct | Self::Dec => 31,
            Self::Apr | Self::Jun | Self::Sep | Self::Nov => 30,
            Self::Feb => {
                if is_leap_year(year) {
                    29
                } else {
                    28
                }
            }
        }
    }
/// The number of days for this month in the given year.
The number of days for this month in the given year.
The number of days for this month in the given year .
pub const fn days_in_month(self, year: u32) -> u8 {
        match self {
            Self::Jan | Self::Mar | Self::May | Self::Jul | Self::Aug | Self::Oct | Self::Dec => 31,
            Self::Apr | Self::Jun | Self::Sep | Self::Nov => 30,
            Self::Feb => {
                if is_leap_year(year) {
                    29
                } else {
                    28
                }
            }
        }
    }
pub const fn days_in_month ( self , year : u32 ) -> u8 { match self { Self :: Jan | Self :: Mar | Self :: May | Self :: Jul | Self :: Aug | Self :: Oct | Self :: Dec => 31 , Self :: Apr | Self :: Jun | Self :: Sep | Self :: Nov => 30 , Self :: Feb => { if is_leap_year ( year ) { 29 } else { 28 } } } }
The number of days for this month in the given year.
The number of days for this month in the given year .
self
year
u32
self
year
u32