Skip to main content

next_local_minute_ms

Function next_local_minute_ms 

Source
pub fn next_local_minute_ms(
    clock: &dyn Clock,
    now_ms: i64,
    minute: u16,
) -> Option<i64>
Expand description

Finds the next real instant whose local wall clock matches minute. Starting at the next whole minute makes the current minute mean its next occurrence, while scanning real instants handles DST transitions.