Stewart

Results 1 comments of Stewart

Copied the example from the docs https://docs.rs/chrono/0.4.13/chrono/trait.DurationRound.html#example-1 and changed to use `Local` vs `Utc`. ```rust let dt = Local.ymd(2018, 1, 11).and_hms_milli(12, 0, 0, 154); assert_eq!( dt.duration_trunc(Duration::milliseconds(10)).unwrap().to_string(), "2018-01-11 12:00:00.150 -08:00" //...