pub fn date(&self) -> Option<NaiveDate> {
        self.calendar_initialized()?;
        let data = self.reg.dr.read();
        let year = 2000 + i32(data.yt().bits()) * 10 + i32(data.yu().bits());
        let month = data.mt().bits() as u8 * 10 + data.mu().bits();
        let day = data.dt().bits() * 10 + data.du().bits();
        NaiveDate::from_ymd_opt(year, u32(month), u32(day))
    }
/// Calendar Date
///
/// Returns `None` if the calendar has not been initialized
Calendar Date
Returns `None` if the calendar has not been initialized
Calendar Date Returns ` None ` if the calendar has not been initialized
pub fn date(&self) -> Option<NaiveDate> {
        self.calendar_initialized()?;
        let data = self.reg.dr.read();
        let year = 2000 + i32(data.yt().bits()) * 10 + i32(data.yu().bits());
        let month = data.mt().bits() as u8 * 10 + data.mu().bits();
        let day = data.dt().bits() * 10 + data.du().bits();
        NaiveDate::from_ymd_opt(year, u32(month), u32(day))
    }
pub fn date ( & self ) -> Option < NaiveDate > { self . calendar_initialized ( ) ? ; let data = self . reg . dr . read ( ) ; let year = 2000 + i32 ( data . yt ( ) . bits ( ) ) * 10 + i32 ( data . yu ( ) . bits ( ) ) ; let month = data . mt ( ) . bits ( ) as u8 * 10 + data . mu ( ) . bits ( ) ; let day = data . dt ( ) . bits ( ) * 10 + data . du ( ) . bits ( ) ; NaiveDate :: from_ymd_opt ( year , u32 ( month ) , u32 ( day ) ) }
Calendar Date
Returns `None` if the calendar has not been initialized
Calendar Date Returns ` None ` if the calendar has not been initialized
&self
&self