Skip to main content

reset_from_text

Function reset_from_text 

Source
pub fn reset_from_text(
    text: &str,
    now: DateTime<Local>,
    local_zone: Option<&str>,
) -> Option<u64>
Expand description

The reset a limit message names (resets Oct 26, 7pm (America/Los_Angeles), resets 7:30pm, resets 3:10am (UTC)), in unix ms, or None. A named zone is read as that zone’s clock (local_zone is this machine’s, read as local); with none named the time is local (the CLI writes it in the machine’s zone). A time with no date is its next occurrence after now; a date with no year, likewise.