GNU Info

Info Node: (sh-utils.info)Time directives

(sh-utils.info)Time directives


Next: Date directives Up: date invocation
Enter node , (file) or (file)node

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)

`%p'
     locale's AM or PM

`%r'
     time, 12-hour (hh:mm:ss [AP]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.

`%S'
     second (00...60)

`%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 timezone is determinable.
     Note that this value reflects the _current_ time zone.  It isn't
     changed by the `--date' option.


automatically generated by info2www version 1.2.2.9