-
Notifications
You must be signed in to change notification settings - Fork 724
Closed
Labels
Description
(TimeSpec is being added in #276)
These types aim to provide a nice Rust struct abstraction over the libc types. However, they could be revisited. Some issues I noticed:
- all the
opstrait impls lose range on the values by callingnum_microseconds()(num_nanoseconds()) for implementation convenience. This reduces the usable range ofTimeValto +/- ~300k years (probably ok) andTimeSpecto +/- ~300 years (not really ok). std::Durationhas been stable since 1.3.0, and we should provide interconversions, and probably deprecate all thehours()and such methods in favour of converting from aDuration. (This brings up version support policy Decide on a rust version support policy #238.)