home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / GNU_KIT / DISK7.ZIP / gnu / man / man1 / date.1 < prev    next >
Encoding:
Text File  |  1991-11-13  |  3.0 KB  |  199 lines

  1.  
  2.  
  3.  
  4. DATE(1L)                                                 DATE(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      date - print or set the system date and time
  10.  
  11. SYNOPSIS
  12.      date [-u] [-s new-date] [+FORMAT] [MMDDhhmm[[CC]YY][.ss]]
  13.  
  14. DESCRIPTION
  15.      This manual page documents the GNU version of date.  date
  16.      with no arguments prints the current time and date (in the
  17.      format of the `%c' directive described below).  If given an
  18.      argument that starts with a `+', it prints the current time
  19.      and date in a format controlled by that argument, which has
  20.      the same format as the format string passed to the
  21.      `strftime' function.  Except for directives that start with
  22.      `%', characters in that string are printed unchanged.
  23.  
  24.      The directives are:
  25.  
  26.      %    a literal %
  27.  
  28.      n    a newline
  29.  
  30.      t    a horizontal tab
  31.  
  32.      Time fields:
  33.  
  34.      %H   hour (00..23)
  35.  
  36.      %I   hour (00..12)
  37.  
  38.      %M   minute (00..59)
  39.  
  40.      %p   locale's AM or PM
  41.  
  42.      %r   time, 12-hour (hh:mm:ss [AP]M)
  43.  
  44.      %S   second (00..61)
  45.  
  46.      %T   time, 24-hour (hh:mm:ss)
  47.  
  48.      %X   locale's time representation (%H:%M:%S)
  49.  
  50.      %Z   time zone (e.g., EDT), or nothing if no time zone is
  51.           determinable
  52.  
  53.      Date fields:
  54.  
  55.      %a   locale's abbreviated weekday name (Sun..Sat)
  56.  
  57.      %A   locale's full weekday name, variable length
  58.           (Sunday..Saturday)
  59.  
  60.  
  61.  
  62.  
  63. Page 1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. DATE(1L)                                                 DATE(1L)
  71.  
  72.  
  73.  
  74.      %b   locale's abbreviated month name (Jan..Dec)
  75.  
  76.      %B   locale's full month name, variable length
  77.           (January..December)
  78.  
  79.      %c   locale's date and time (Sat Nov 04 12:02:33 EST 1989)
  80.  
  81.      %d   day of month (01..31)
  82.  
  83.      %D   date (mm/dd/yy)
  84.  
  85.      %h   same as %b
  86.  
  87.      %j   day of year (001..366)
  88.  
  89.      %m   month (01..12)
  90.  
  91.      %U   week number of year with Sunday as first day of week
  92.           (00..53)
  93.  
  94.      %w   day of week (0..6)
  95.  
  96.      %W   week number of year with Monday as first day of week
  97.           (00..53)
  98.  
  99.      %x   locale's date representation (mm/dd/yy)
  100.  
  101.      %y   last two digits of year (00..99)
  102.  
  103.      %Y   year (1970...)
  104.  
  105.      If given an argument that does not start with `+', date sets
  106.      the system clock to the time and date specified by that
  107.      argument.  The argument must consist entirely of digits,
  108.      which have the following meaning:
  109.  
  110.      MM   month
  111.  
  112.      DD   day within month
  113.  
  114.      hh   hour
  115.  
  116.      mm   minute
  117.  
  118.      CC   first two digits of year (optional)
  119.  
  120.      YY   last two digits of year (optional)
  121.  
  122.      ss   second (optional)
  123.  
  124.      Only the superuser can set the system clock.
  125.  
  126.  
  127.  
  128.  
  129. Page 2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. DATE(1L)                                                 DATE(1L)
  137.  
  138.  
  139.  
  140.      OPTIONS
  141.  
  142.      -_s _n_e_w-_d_a_t_e
  143.           Set the time and date to _n_e_w-_d_a_t_e, which can be in
  144.           almost any common format.  It can contain month names,
  145.           timezones, `am' and `pm', etc.
  146.  
  147.      -_u   Print or set the time and date in Universal Coordinated
  148.           Time (also known as Greenwich Mean Time) instead of in
  149.           local (wall clock) time.
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195. Page 3
  196.  
  197.  
  198.  
  199.