MCPcopy Create free account
hub / github.com/Botloader/botloader / next_run_time

Method next_run_time

components/scheduler/src/interval_timer_manager.rs:277–282  ·  view source on GitHub ↗
(&self, t: DateTime<Utc>)

Source from the content-addressed store, hash-verified

275
276impl ParsedIntervalType {
277 fn next_run_time(&self, t: DateTime<Utc>) -> Option<DateTime<Utc>> {
278 match self {
279 Self::Cron(_, c) => c.after(&t).next(),
280 Self::Minutes(minutes) => Some(t.add(chrono::Duration::minutes(*minutes as i64))),
281 }
282 }
283}
284
285pub type NextAction = crate::guild_handler::NextTimerAction;

Callers 2

update_last_runMethod · 0.80
wrap_timerFunction · 0.80

Calls 1

addMethod · 0.80

Tested by

no test coverage detected