Expand description
Cross platform time utilities.
Structs§
- Duration
- A Durationtype 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 PrimitiveDateTimethat is known to be UTC.
Traits§
- ToUtcDate Time 
- The trait helping convert to a UtcDateTime.
Functions§
- now
- Returns the current system time (UTC+0).
- to_typst_ time 
- Converts a UtcDateTimeto typst’s datetime.
- utc_now
- Returns the current datetime in utc (UTC+0).