time

System time function.

Syntax

time([format])

Argument

[format]
An optional parameter that specifies how the time is displayed.

Example

Templex Expression Results
{time()} 09:55:15 PM
{time("%a")} Mon
{time("%B")} August
{time("%D")} 08/19/19
{time("%T")} 21:55:15

Comments

The time function returns the current system date (month, day, year) as a string. If format is included, the date is formatted using that string, following the conventions for the cftime function.
     
%c your operating system's default date and time format varies
%H hour 15
%I hour 15
%M minute 01
%p your operating system's equivalent of either AM or PM varies
%r time as %I:%M:%S [AM|PM] 3:01:10 PM
%R time as %H:%M 15:01
%S seconds (allows for leap seconds) 33
%T time as %H:%M:%S 15:01:33
%X your operating system's default time format varies
%Z time zone name or no characters if no time zone exists DST