Returns a date and time in the specified format. If
unixtime
is not provided, the current time is
used. The default
timezone
is the system
default timezone. Possible time zones may be found in
/usr/share/zoneinfo/
. The format placeholders are
the same as those for the C function
strftime()
(see
man strftime
), the default is
%c
,
i.e. the locale-dependent date-time
format.
; Date/time in format YYYY-MM-DD HH:MM:SS
exten => 123,1,Set(time=${STRFTIME(${EPOCH},America/Los_Angeles,"%Y-%m-%d %H:%M:%S")})