Expand description
Cross platform time utilities.
Structs§
- Duration
- A
Duration
type to represent a span of time, typically used for system timeouts. - Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration
. - Time
- A measurement of the system clock, useful for talking to external entities like the file system or other processes.
- UtcDate
Time - A
PrimitiveDateTime
that is known to be UTC.
Traits§
- ToUtc
Date Time - The trait helping convert to a
UtcDateTime
.
Functions§
- now
- Returns the current system time (UTC+0).
- to_
typst_ time - Converts a
UtcDateTime
to typst’s datetime. - utc_now
- Returns the current datetime in utc (UTC+0).