Calendar
Small helpers for turning machine dates into words. Calendar takes a unix timestamp, a whole
number of seconds, and gives back a text value you can bind straight into a page. Because the result
is reactive, it updates on its own when the timestamp changes, so you pass it to something like
Input.ReadOnly and let it track. Formatting produces the ordinal day, short month name
and year, followed by the time, for example 1st Jan 2026 14:30.
Contents
Functions
Functions
Calendar.ToHumanReadable
Formats a unix timestamp (in seconds) as a human-readable date and time.
Parameters
| Name | Type | Description |
|---|---|---|
timestamp | integer | A unix timestamp in seconds; plain or reactive, updating on its own when it changes. |
Returns
A reactive text value holding the formatted date and time, for example 1st Jan 2026 14:30.
Example
const created = Calendar.ToHumanReadable(created_at);
Input.ReadOnly(created);