Module time

Source
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.
UtcDateTime
A PrimitiveDateTime that is known to be UTC.

Traits§

ToUtcDateTime
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).