Expand description
Structs§
- Duration
core
A span of time, withu64
seconds andu32
nanoseconds.- Duration
Error TryFrom Float Secs - 🚩
core
Error returned from converting floating-point seconds into aDuration
. - System
Instant std
std
A measurement of a monotonically nondecreasing clock.- System
Time std
std
A measurement of the system clock.- System
Time Error std
- 🚩
Returned from the
duration_since
andelapsed
methods onSystemTime
. - Time
Delta - A signed duration of time, stored as an
(i64, i32)
pair of seconds and nanoseconds. - Time
Split time
- A full time split from years to nanoseconds.
- Timecode
time
- Timecode splitting and formatting.
- Unix
Time I64 time
- 64-bit Unix time, supporting negative values.
- Unix
Time U32 time
- 32-bit Unix time, supporting only non-negative values.
Enums§
- Month
- The months of the year.
- Time
Error error
andtime
- 🚩+ A text-related composite error.
- Weekday
- The days of the week.
Constants§
- UNIX_
EPOCH std
std
ASystemTime
anchored to “1970-01-01 00:00:00 UTC”.
Functions§
- is_
leap_ year time
- Returns
true
if the providedyear
is a leap year.
Type Aliases§
- NoTime
time
- Represents the absence of time.
- Time
Instant - A measurement of a monotonically nondecreasing clock.
- Time
Result error
andtime
- ⚖️ A text-related result.
- Time
Split Hour Nano time
- A time split from hours to nanoseconds.
- Time
Split Hour Nano Norm time
- A time split from hours to seconds, normalized (128b size & payload).
- Time
Split Hour Sec time
- A time split from hours to seconds.
- Time
Split Hour SecNorm time
- A time split from hours to seconds, normalized (128b size, 80b payload).
- Time
Split Milli Nano time
- A time split from milliseconds to nanoseconds.
- Time
Split Milli Nano Norm time
- A time split from milliseconds to nanoseconds, normalized (48b size & payload).
- Time
Split Norm time
- A time split from years to nanoseconds, normalized (192b size, 152b payload).
- Time
Split Year Day time
- A time split from years to days.
- Time
Split Year DayNorm time
- A time split from years to days, normalized (128b size, 80b payload).
- Time
Split Year Sec time
- A time split from years to seconds.
- Time
Split Year SecNorm time
- A time split from years to seconds, normalized (128b size, 104b payload).