fastc-core · wall-clock + ISO 8601
fastc-core-time
fastc-core-time provides monotonic and wall-clock reads plus ISO 8601 formatting and parsing. Reading the clock is a capability — CapTimeRead — because the current time is ambient authority the type system chooses to make explicit.
capability CapTimeRead
What it ships (v0.1.0)
- Monotonic and wall clocks
- ISO 8601 formatting and parsing
- UTC-only, gated on CapTimeRead
When to use it
Timestamps, timers, and deadlines where clock access should be auditable.
Example
use time::now;
fn stamp(c: ref(CapTimeRead)) -> String {
return now(c).iso8601();
} fastc-core-time — minimal usage fastc-core-time v0.1.0
Roadmap
Time-zone support lands in v0.2.
Implements ISO 8601.
Provenance
Like every fastc-core package, fastc-core-time ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-time — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →