man(1) Manual page archive


     DATE(1)                                                   DATE(1)

     NAME
          date - print or set the date

     SYNOPSIS
          date  [ yymmddhhmm [  .  ss ] ]

     DESCRIPTION
          If no argument is given, the current date and time are
          printed.  If an argument is given and the user is the
          super-user, the current date is set.  yy is the last two
          digits of the year; the first mm is the month number; dd is
          the day number in the month; hh is the hour number (24 hour
          system); the second mm is the minute number; .ss is optional
          and is the seconds.  The year, month and day may be omitted,
          the current values being the defaults.  The system operates
          in GMT.  Date takes care of the conversion to and from local
          standard and daylight time.  The options are

          -u   Set or report GMT rather than local time.

          -n   Set or report the date as the number of seconds since
               the epoch.

     EXAMPLES
          date 10080045
               Set the date to Oct 8, 12:45 AM, local time.

     FILES
          to record time-setting

     SEE ALSO
          utmp(5)

     DIAGNOSTICS
          `No permission' if a non-super user tries to change the
          date; `bad conversion' if the date is invalid.