Skip to main content

now

Function now 

Source
pub fn now() -> NaiveDateTime
Expand description

The current local time as a naive timestamp, truncated to microseconds like Python’s datetime.now().

Every method of State that takes a timestamp truncates it the same way, so anything stored in the state survives a save and a load unchanged.