Date & Time
BuiltConfigurable
Current date, time, and calendar values. Supports timezone configuration and format patterns.
| Module type | datetime |
|---|---|
| Default expression ID | dt |
| Refresh rate | Per render tick |
| Required config | timezone |
Declaration
<module type="datetime" id="dt" timezone="Europe/Oslo" />Properties
Reference any of these from a template via{dt:propertyName}.
| Name | Description | Example | Format arg |
|---|---|---|---|
time | Current time | 14:30 | Yes |
date | Current date | 2026-03-24 | Yes |
weekday | Day of week name | Tuesday | — |
hour | Hour (0-23) | 14 | — |
minute | Minute (00-59) | 30 | — |
second | Second (00-59) | 45 | — |
year | Four-digit year | 2026 | — |
month | Month number (1-12) | 3 | — |
dayOfMonth | Day of month (1-31) | 24 | — |
timestamp | Unix epoch seconds | 1774362645 | — |
hour12 | Hour on a 12-hour clock (1-12) | 2 | — |
amPm | AM or PM marker | PM | — |
millisecond | Millisecond within the second (0-999) | 0 | — |
hourAngle | Hour-hand angle in degrees, clockwise from 12 o'clock; advances with the minutes | 75.375 | — |
minuteAngle | Minute-hand angle in degrees, clockwise from 12 o'clock; advances with the seconds | 184.5 | — |
secondAngle | Second-hand angle in degrees, stepping once per second | 270 | — |
secondAngleSmooth | Second-hand angle in degrees including the fraction of the current second (pair with refresh="frame" for a sweeping hand) | 270 | — |
Events
| Trigger | Description |
|---|---|
| On each render tick | Re-evaluated every render cycle |