File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / date
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



date                         Command                         date




Print/set the date and time

ddaattee [-ss] [-uu] [[_y_y_m_m_d_d]_h_h_m_m[._s_s]]

date prints  the time of day and the  current date, including the
time zone.   If an argument  is given, the  system's current time
and date is changed, as follows:


         _y_y    Year (00-99)
         _m_m    Month (01-12)
         _d_d    Day (01-31)
         _h_h    Hour (00-23)
         _m_m    Minute (00-59)
         _s_s    Seconds (00-59)


The seconds fields are optional.  For example, typing


    date 860512141233


sets the date  to May 12, 1986, and the  time to 2:12:33 P.M.  At
least hh and mm must be specified--the rest are optional.

The date may be changed only by the superuser.

If option -s  is specified, date suppresses daylight savings time
conversion when setting the time.

If option -u is specified, dates are set and printed in Greenwich
Mean Time (GMT) rather than in local time.

The library  time conversion routines  used by date  look for the
environmental variable TIMEZONE,  which specifies local time zone
and daylight  saving time information in  the format described in
ctime.

***** See Also *****

ATclock, commands, ctime(), time, TIMEZONE














COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.