vyrn

std/time

15 exports, from std/time.vyrn.

Wall-clock time at the host boundary, and a pure calendar breakdown.

now() and monotonic() are host effects, so generators and comptime code cannot call them; the parity harness fixes the clock with VYRN_FIXED_TIME. The calendar breakdown and the formatters are pure. UTC only: no timezone database, no DST, no locale. Milliseconds since the Unix epoch, UTC. A distinct type, so a timestamp does not mix with a plain count.

Dependencies

The import graph shows the whole library.

Imports
Imported by
type Instant = Int64 where value >= 0

Milliseconds since the Unix epoch, UTC. A distinct type, so a timestamp does not mix with a plain count.

type Civil = { year: Int64, month: Int64, day: Int64 }

A UTC calendar date, the pure breakdown of an Instant's day component.

Tests

Test names

    This module carries no test block of its own.

    Examples

    2 programs in examples/ import this module. Each runs as WebAssembly and as a native binary.