Crate time [stability]
[-] [+]
[src]
Simple time handling.
Structs
Duration | ISO 8601 time duration with nanosecond precision. This also allows for the negative duration; see individual methods for details. |
PreciseTime | An opaque structure representing a moment in time. |
SteadyTime | A structure representing a moment in time. |
Timespec | A record specifying a time value in seconds and nanoseconds. |
Tm | Holds a calendar date and time broken down into its components (year, month, day, and so on), also called a broken-down time value. |
TmFmt | A wrapper around a |
Enums
ParseError |
Functions
at | Returns the specified time in the local timezone |
at_utc | Returns the specified time in UTC |
empty_tm | |
get_time | Returns the current time as a |
now | Returns the current time in the local timezone |
now_utc | Returns the current time in UTC |
precise_time_ns | Returns the current value of a high-resolution performance counter in nanoseconds since an unspecified epoch. |
precise_time_s | Returns the current value of a high-resolution performance counter in seconds since an unspecified epoch. |
strftime | Formats the time according to the format string. |
strptime | Parses the time from the string according to the format string. |
tzset |