#chrono vs time vs std-time

3 messages · Page 1 of 1 (latest)

wispy venture
#

When it comes to choosing a time based field in Rust, it confuses me so much on which one should I prefer - chrono / time / std::time. What are the pros and cons of each one and how one is prefered over other based on situations? Also some library uses chrono and other uses time, if I want to convert chrono type to time how to do it and vice-versa?

naive snow
#

time::Duration can express negative durations
chrono is higher level with timezone support via chrono-tz

wispy venture