Name

STRFTIME — Formats the date and time

Synopsis

STRFTIME([epoch][|[timezone][|format]])

Returns the current date/time in a specified format.

STRFTIME passes the epoch and format arguments directly to the underlying strftime(3) C library call, so check out that manpage for more information. The timezone parameter should be the name of a directory/file in /usr/share/zoneinfo (e.g., America/Chicago or America/New_York).

See Also

STRPTIME()

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.