Other
Time Format
Many functions like $timeToDate require you to specify a time format to correctly construct date and time values.
Available Time Format Macros
The following table details the available time format macros and their descriptions:
| Macro | Description | Example |
|---|---|---|
d | Day number of the month | 9 |
0d | Day number of the month with leading zero | 09 |
dn | Day name of the week | Sunday |
y | Year number | 2022 |
hr | Hour in 24-hour format | 20 |
0hr | Hour in 24-hour format with leading zero | 05 |
hr/12 | Hour in 12-hour format | 8 |
0hr/12 | Hour in 12-hour format with leading zero | 08 |
ms | Milliseconds | 1 |
0ms | Milliseconds with leading zeros | 001 |
min | Minutes | 9 |
0min | Minutes with leading zero | 09 |
m | Month number | 8 |
0m | Month number with leading zero | 08 |
mn | Month name | February |
s | Seconds | 20 |
0s | Seconds with leading zero | 03 |
ampm | AM/PM indicator | PM / AM |
tz | Timezone abbreviation | UTC |
Example
Member
9/5/2026
!!exec $timeToDate[$timestamp;Updated on %d%/%m%/%y% at %0hr%:%0min%]
Custom Command
APP
9/5/2026
Updated on 1/1/2000 at 01:01