LOG IN SIGN UP
Documentation

strftime()

Formats a time to a string. This uses standard POSIX strftime formats.

Format

STRING
strftime(STRING format, TIME time)

Examples

# Concise format, e.g.: 2006-01-02 22:04
set resp.http.now = strftime({"%Y-%m-%d %H:%M"}, now);
# RFC 5322 format, e.g.: Mon, 02 Jan 2006 22:04:05 +0000
set resp.http.start = strftime({"%a, %d %b %Y %T %z"}, time.start);
# ISO 8601 format, e.g.: 2006-01-02T22:04:05Z
set resp.http.end = strftime({"%Y-%m-%dT%H:%M:%SZ"}, time.end);