Skip to main content

rollover_if_new_day

Function rollover_if_new_day 

Source
pub fn rollover_if_new_day(state: &mut ChoresState, today: &str) -> bool
Expand description

Reset state to an empty list if today differs from its stored date. Returns true iff a rollover happened (so the caller can decide whether to persist).