


      DDDDAAAATTTTEEEE((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    DDDDAAAATTTTEEEE((((1111))))



      NNNNAAAAMMMMEEEE
           date - print and set the date

      SSSSYYYYNNNNTTTTAAAAXXXX
           ddddaaaatttteeee [ [yy]mmddhhmm[.ss] ] [ ++++format ]

      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
           If no argument is given, or if the argument begins with ++++,
           the current date and time are printed.  Otherwise, the
           current date is set.  The first _m_m is the month number; _d_d
           is the day number in the month; _h_h is the hour number (24
           hour system); the second _m_m is the minute number; _y_y is the
           last 2 digits of the year number and is optional; _s_s is the
           current second and is also optional.  For example:

                date 10080045

           sets the date to Oct 8, 12:45 AM.  The current year is the
           default if no year is mentioned.  The system operates in
           GMT.  _D_a_t_e takes care of the conversion to and from local
           standard and daylight time.

           If the argument begins with ++++, the output of _d_a_t_e is under
           the control of the user.  The format for the output is
           similar to that of the first argument to _p_r_i_n_t_f(3S).  All
           output fields are of fixed size (zero padded if necessary).
           Each field descriptor is preceded by %%%% and will be replaced
           in the output by its corresponding value.  A single %%%% is
           encoded by %%%%%%%%.  All other characters are copied to the
           output without change.  The string is always terminated with
           a new-line character.

           Field Descriptors:
                nnnn    insert a new-line character
                tttt    insert a tab character
                mmmm    month of year - 01 to 12
                dddd    day of month - 01 to 31
                yyyy    last 2 digits of year - 00 to 99
                DDDD    date as mm/dd/yy
                HHHH    hour - 00 to 23
                MMMM    minute - 00 to 59
                SSSS    second - 00 to 59
                TTTT    time as HH:MM:SS
                jjjj    day of year - 001 to 366
                wwww    day of week - Sunday = 0
                aaaa    abbreviated weekday - Sun to Sat
                hhhh    abbreviated month - Jan to Dec
                rrrr    time in AM/PM notation







      Page 1                                                   (9010-E)






      DDDDAAAATTTTEEEE((((1111))))                     ((((UUUUNNNNIIIIXXXX 5555....0000))))                    DDDDAAAATTTTEEEE((((1111))))



      EEEEXXXXAAAAMMMMPPPPLLLLEEEE
                date '+DATE: %m/%d/%y%nTIME: %H:%M:%S'
           would have generated as output:
                DATE: 08/01/76
                TIME: 14:45:05
      DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
           _N_o _p_e_r_m_i_s_s_i_o_n         if you aren't the super-user and you
                                 try to change the date;
           _b_a_d _c_o_n_v_e_r_s_i_o_n        if the date set is syntactically
                                 incorrect;
           _b_a_d _f_o_r_m_a_t _c_h_a_r_a_c_t_e_r  if the field descriptor is not
                                 recognizable.
      WWWWAAAARRRRNNNNIIIINNNNGGGG
           It is a bad practice to change the date while the system is
           running multi-user.








































      Page 2                                                   (9010-E)



