Date/time arithmetic on millisecond-since-epoch integers — proleptic Gregorian, same model as JavaScript Date. Pure-loft; identical results on interp, --native, WASM.
loft install time
use time;
| Guide | getting started with time |
|---|---|
| Version | 0.4.1 — published 2026-10-05 |
| Categories | Time · Games |
| Requires | loft >=2026.10.20261002 |
| Compatibility | API: drop-in for 0.4.0 and later · stored data: drop-in for 0.3.0 and later |
| Download | 25 kB |
| Public API | 74 items, with their documentation |
| Dependencies | none |
| Used by | no other registry package — you would be the first |
| Source | read it here — the libraries are written in loft |
| Repository | https://github.com/loft-lang/loft-libs-game/tree/main/time |
A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.