Author: | Adrián Pérez de Castro <aperez@igalia.com> |
---|---|
Copyright: | 2008-2009 Igalia S.L. |
License: | GPL3 |
Abstract
Provides functions for dealing with date and time values.
Format of time specification arguments is nearly any English unambiguous text describing a time and/or date.
time_format [format [time]]
Formats a given time with the specified format.
time_rfc2822 [time]
Formats a given time in the format specified by RFC 822 (or RFC 2822). This is typically used in Internet protocols and formats.
time_stamp [time]
Formats a give time as a timestamp. The output looks like:
YYYY-mm-ddTHH:MM:SS.NNNNNNNN
Timestamps generated this way can be sorted lexicographically, e.g. using the sort(1) command, it looks like.
time_parse string
Parses a string containing a time specification and returns the number of seconds from the Epoch.