[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

21.1.1 Time directives

date directives related to times.

`%H'
hour (00...23)
`%I'
hour (01...12)
`%k'
hour ( 0...23)
`%l'
hour ( 1...12)
`%M'
minute (00...59)
`%N'
nanoseconds (000000000...999999999)
`%p'
locale's upper case `AM' or `PM' (blank in many locales)
`%P'
locale's lower case `am' or `pm' (blank in many locales)
`%r'
time, 12-hour (hh:mm:ss [AP]M)
`%R'
time, 24-hour (hh:mm). Same as %H:%M.
`%s'
seconds since the epoch, i.e., 1 January 1970 00:00:00 UTC (a GNU extension). Note that this value is the number of seconds between the epoch and the current date as defined by the localtime system call. It isn't changed by the `--date' option.
`%S'
second (00...60). The range is [00...60], and not [00...59], in order to accommodate the occasional positive leap second.
`%T'
time, 24-hour (hh:mm:ss)
`%X'
locale's time representation (%H:%M:%S)
`%z'
RFC-822 style numeric time zone (e.g., -0600 or +0100), or nothing if no time zone is determinable. This value reflects the current time zone. It isn't changed by the `--date' option.
`%Z'
time zone (e.g., EDT), or nothing if no time zone is determinable. Note that this value reflects the current time zone. It isn't changed by the `--date' option.



This document was generated by Jeff Bailey on December, 28 2002 using texi2html