Custom Command
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:

MacroDescriptionExample
dDay number of the month9
0dDay number of the month with leading zero09
dnDay name of the weekSunday
yYear number2022
hrHour in 24-hour format20
0hrHour in 24-hour format with leading zero05
hr/12Hour in 12-hour format8
0hr/12Hour in 12-hour format with leading zero08
msMilliseconds1
0msMilliseconds with leading zeros001
minMinutes9
0minMinutes with leading zero09
mMonth number8
0mMonth number with leading zero08
mnMonth nameFebruary
sSeconds20
0sSeconds with leading zero03
ampmAM/PM indicatorPM / AM
tzTimezone abbreviationUTC

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

On this page