/// Checks if the alarm has been launched today or before the app started
Checks if the alarm has been launched today or before the app started
Checks if the alarm has been launched today or before the app started
pub fn already_run_today(&self, now: &DateTime<Local>) -> bool {
        self.last_run.day() == now.day() && {
            hms_gte(
                (self.last_run.hour(), self.last_run.minute(), self.last_run.second()),
                (self.time.hours, self.time.minutes, self.time.seconds)
            )
        }
    }
pub fn already_run_today ( & self , now : & DateTime < Local > ) -> bool { self . last_run . day ( ) == now . day ( ) && { hms_gte ( ( self . last_run . hour ( ) , self . last_run . minute ( ) , self . last_run . second ( ) ) , ( self . time . hours , self . time . minutes , self . time . seconds ) ) } }
Checks if the alarm has been launched today or before the app started
Checks if the alarm has been launched today or before the app started
&self
now
&DateTime<Local>