Module time

Source
Expand description

Re-export of hifitime

Structs§

Duration
Defines generally usable durations for nanosecond precision valid for 32,768 centuries in either direction, and only on 80 bits / 10 octets.
Epoch
Defines a nanosecond-precision Epoch.
Format
Format allows formatting an Epoch with some custom arrangement of the Epoch items. This provides almost all of the options from the 1989 C standard.
Formatter
TimeSeries
An iterator of a sequence of evenly spaced Epochs.

Enums§

DurationError
Freq
An Enum to convert frequencies to their approximate duration, rounded to the closest nanosecond.
HifitimeError
Errors handles all oddities which may occur in this library.
ParsingError
TimeScale
Enum of the different time systems available
Unit
An Enum to perform time unit conversions.
Weekday

Traits§

Frequencies
A trait to automatically convert some primitives to an approximate frequency as a duration, rounded to the closest nanosecond Does not support more than 1 GHz (because max precision of a duration is 1 nanosecond)
TimeUnits
A trait to automatically convert some primitives to a duration