rustsystemtime

Is there a way to modify SystemTime in rust?


I need to modify a SystemTime and set it to the current minute without the seconds but I can't find any methods or documentation on how to do this. I am currently using SystemTime::now(). What I am looking for is some way to set the seconds to zero. Is there a way to do this in rust?


Solution

  • SystemTime is not really designed as a full datetime library - it sounds like you probably want something like the chrono or time crates.