gleamunison/datetime

Time for store logs, evidence, and trust windows.

The runtime stores whole Unix seconds and renders them as second-precision Zulu timestamps. Birl owns calendar conversion; this module preserves the project’s stored and rendered shape.

Types

pub opaque type DateTime

Values

pub fn format_unix(seconds: Int) -> String

Render whole Unix seconds exactly as the store log has always done: YYYY-MM-DDTHH:MM:SSZ, with no fractional-second noise.

pub fn now() -> DateTime
pub fn now_unix() -> Int

Whole Unix seconds, the shape stored by logs and evidence.

✨ Search Document