You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The standard library's Duration type has two useful methods:
subsec_micros
subsec_millis
This has the benefit of returning a u32 instead of a Option<i64>. I suggest the same three methods be added to chrono 0.4. I see we already have subsec_nanos in the 0.4.x branch, although it wasn't released yet. So this proposal just adds the two remaining methods.
Also, for consistency, should this method be called subsec_nanoseconds instead of subsec_nanos? That's what's used in DateTime.
The text was updated successfully, but these errors were encountered:
The standard library's
Duration
type has two useful methods:subsec_micros
subsec_millis
This has the benefit of returning a
u32
instead of aOption<i64>
. I suggest the same three methods be added to chrono 0.4. I see we already havesubsec_nanos
in the0.4.x
branch, although it wasn't released yet. So this proposal just adds the two remaining methods.Also, for consistency, should this method be called
subsec_nanoseconds
instead ofsubsec_nanos
? That's what's used inDateTime
.The text was updated successfully, but these errors were encountered: