DATE(1)                                                   DATE(1)
     NAME
          date, clock - date and time
     SYNOPSIS
          date [ -unit ] [ -f format ] [ seconds ]
          clock
     DESCRIPTION
          Print the date, in the format
               Tue Aug 16 17:03:52 CDT 1977
          Or the format specified by the format option.
          The options are
          -u   Report Greenwich Mean Time (GMT) rather than local
               time.
          -n   Report the date as the number of seconds since the
               epoch, 00:00:00 GMT, January 1, 1970.
          -i   Report the date as ISO-8601 without time and timezone
               suffix.
          -t   Report the date as ISO-8601 with time and timezone suf-
               fix.
          -f   Print using the format specified by the format string
               rather than the default. Format strings are in the for-
               mat used by tmdate(2)
          The conversion from Greenwich Mean Time to local time
          depends on the $timezone environment variable; see ctime(2).
          If the optional argument seconds is present, it is used as
          the time to convert rather than the real time.
          Clock draws a simple analog clock in its window.
     FILES
          /env/timezone        Current timezone name and adjustments.
          /adm/timezone        A directory containing timezone tables.
          /adm/timezone/local  Default timezone file, copied by
                               init(8) into /env/timezone.
     SOURCE
          /sys/src/cmd/date.c
          /sys/src/cmd/clock.c
     Page 1                       Plan 9            (printed 10/31/25)
     DATE(1)                                                   DATE(1)
     SEE ALSO
          tmdate(2)
     Page 2                       Plan 9            (printed 10/31/25)