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