1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH DATE "1" "March 2007" "GNU coreutils 6.9" "User Commands"
4 date \- print or set the system date and time
7 [\fIOPTION\fR]... [\fI+FORMAT\fR]
10 [\fI-u|--utc|--universal\fR] [\fIMMDDhhmm\fR[[\fICC\fR]\fIYY\fR][\fI.ss\fR]]
12 .\" Add any additional description here
14 Display the current time in the given FORMAT, or set the system date.
16 \fB\-d\fR, \fB\-\-date\fR=\fISTRING\fR
17 display time described by STRING, not `now'
19 \fB\-f\fR, \fB\-\-file\fR=\fIDATEFILE\fR
20 like \fB\-\-date\fR once for each line of DATEFILE
22 \fB\-r\fR, \fB\-\-reference\fR=\fIFILE\fR
23 display the last modification time of FILE
25 \fB\-R\fR, \fB\-\-rfc\-2822\fR
26 output date and time in RFC 2822 format.
27 Example: Mon, 07 Aug 2006 12:34:56 \fB\-0600\fR
29 \fB\-\-rfc\-3339\fR=\fITIMESPEC\fR
30 output date and time in RFC 3339 format.
31 TIMESPEC=`date', `seconds', or `ns' for
32 date and time to the indicated precision.
33 Date and time components are separated by
34 a single space: 2006\-08\-07 12:34:56\-06:00
36 \fB\-s\fR, \fB\-\-set\fR=\fISTRING\fR
37 set time described by STRING
39 \fB\-u\fR, \fB\-\-utc\fR, \fB\-\-universal\fR
40 print or set Coordinated Universal Time
43 display this help and exit
46 output version information and exit
48 FORMAT controls the output. The only valid option for the second form
49 specifies Coordinated Universal Time. Interpreted sequences are:
55 locale's abbreviated weekday name (e.g., Sun)
58 locale's full weekday name (e.g., Sunday)
61 locale's abbreviated month name (e.g., Jan)
64 locale's full month name (e.g., January)
67 locale's date and time (e.g., Thu Mar 3 23:05:25 2005)
70 century; like %Y, except omit last two digits (e.g., 21)
73 day of month (e.g, 01)
76 date; same as %m/%d/%y
79 day of month, space padded; same as %_d
82 full date; same as %Y\-%m\-%d
85 last two digits of year of ISO week number (see %G)
88 year of ISO week number (see %V); normally useful only with %V
100 day of year (001..366)
118 nanoseconds (000000000..999999999)
121 locale's equivalent of either AM or PM; blank if not known
124 like %p, but lower case
127 locale's 12\-hour clock time (e.g., 11:11:04 PM)
130 24\-hour hour and minute; same as %H:%M
133 seconds since 1970\-01\-01 00:00:00 UTC
142 time; same as %H:%M:%S
145 day of week (1..7); 1 is Monday
148 week number of year, with Sunday as first day of week (00..53)
151 ISO week number, with Monday as first day of week (01..53)
154 day of week (0..6); 0 is Sunday
157 week number of year, with Monday as first day of week (00..53)
160 locale's date representation (e.g., 12/31/99)
163 locale's time representation (e.g., 23:13:48)
166 last two digits of year (00..99)
172 +hhmm numeric timezone (e.g., \fB\-0400\fR)
175 +hh:mm numeric timezone (e.g., \fB\-04\fR:00)
178 +hh:mm:ss numeric time zone (e.g., \fB\-04\fR:00:00)
181 numeric time zone with : to necessary precision (e.g., \fB\-04\fR, +05:30)
184 alphabetic time zone abbreviation (e.g., EDT)
186 By default, date pads numeric fields with zeroes.
187 The following optional flags may follow `%':
190 (hyphen) do not pad the field
193 (underscore) pad with spaces
196 (zero) pad with zeros
199 use upper case if possible
202 use opposite case if possible
204 After any flags comes an optional field width, as a decimal number;
205 then an optional modifier, which is either
206 E to use the locale's alternate representations if available, or
207 O to use the locale's alternate numeric symbols if available.
209 Written by David MacKenzie.
211 Report bugs to <bug\-coreutils@gnu.org>.
213 Copyright \(co 2007 Free Software Foundation, Inc.
215 This is free software. You may redistribute copies of it under the terms of
216 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
217 There is NO WARRANTY, to the extent permitted by law.
219 The full documentation for
221 is maintained as a Texinfo manual. If the
225 programs are properly installed at your site, the command
229 should give you access to the complete manual.