C.51. STRFTIME()

STRFTIME([unixtime][,[timezone][,]])
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")})

Note

Internal help for this application in Asterisk 1.4:
  -= Info about function 'STRFTIME' =- 

[Syntax]
STRFTIME([<epoch>][|[timezone][|format]])

[Synopsis]
Returns the current date/time in a specified format.

[Description]
Not available
diff output to internal help in Asterisk 1.2:
5c5
< STRFTIME([<epoch>][|[timezone][|format]])
---
> STRFTIME([<epoch>][,[timezone][,format]])