1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3.
2 .TH DATE "1" "January 2016" "GNU coreutils 8.25" "User Commands"
4 date \- print or set the system date and time
7 [\fI\,OPTION\/\fR]... [\fI\,+FORMAT\/\fR]
10 [\fI\,-u|--utc|--universal\/\fR] [\fI\,MMDDhhmm\/\fR[[\fI\,CC\/\fR]\fI\,YY\/\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 Mandatory arguments to long options are mandatory for short options too.
18 \fB\-d\fR, \fB\-\-date\fR=\fI\,STRING\/\fR
19 display time described by STRING, not 'now'
21 \fB\-f\fR, \fB\-\-file\fR=\fI\,DATEFILE\/\fR
22 like \fB\-\-date\fR; once for each line of DATEFILE
24 \fB\-I[FMT]\fR, \fB\-\-iso\-8601\fR[=\fI\,FMT\/\fR]
25 output date/time in ISO 8601 format.
26 FMT='date' for date only (the default),
27 \&'hours', 'minutes', 'seconds', or 'ns'
28 for date and time to the indicated precision.
29 Example: 2006\-08\-14T02:34:56\-0600
31 \fB\-R\fR, \fB\-\-rfc\-2822\fR
32 output date and time in RFC 2822 format.
33 Example: Mon, 14 Aug 2006 02:34:56 \fB\-0600\fR
35 \fB\-\-rfc\-3339\fR=\fI\,FMT\/\fR
36 output date/time in RFC 3339 format.
37 FMT='date', 'seconds', or 'ns'
38 for date and time to the indicated precision.
39 Example: 2006\-08\-14 02:34:56\-06:00
41 \fB\-r\fR, \fB\-\-reference\fR=\fI\,FILE\/\fR
42 display the last modification time of FILE
44 \fB\-s\fR, \fB\-\-set\fR=\fI\,STRING\/\fR
45 set time described by STRING
47 \fB\-u\fR, \fB\-\-utc\fR, \fB\-\-universal\fR
48 print or set Coordinated Universal Time (UTC)
51 display this help and exit
54 output version information and exit
56 FORMAT controls the output. Interpreted sequences are:
62 locale's abbreviated weekday name (e.g., Sun)
65 locale's full weekday name (e.g., Sunday)
68 locale's abbreviated month name (e.g., Jan)
71 locale's full month name (e.g., January)
74 locale's date and time (e.g., Thu Mar 3 23:05:25 2005)
77 century; like %Y, except omit last two digits (e.g., 20)
80 day of month (e.g., 01)
83 date; same as %m/%d/%y
86 day of month, space padded; same as %_d
89 full date; same as %Y\-%m\-%d
92 last two digits of year of ISO week number (see %G)
95 year of ISO week number (see %V); normally useful only with %V
107 day of year (001..366)
110 hour, space padded ( 0..23); same as %_H
113 hour, space padded ( 1..12); same as %_I
125 nanoseconds (000000000..999999999)
128 locale's equivalent of either AM or PM; blank if not known
131 like %p, but lower case
134 locale's 12\-hour clock time (e.g., 11:11:04 PM)
137 24\-hour hour and minute; same as %H:%M
140 seconds since 1970\-01\-01 00:00:00 UTC
149 time; same as %H:%M:%S
152 day of week (1..7); 1 is Monday
155 week number of year, with Sunday as first day of week (00..53)
158 ISO week number, with Monday as first day of week (01..53)
161 day of week (0..6); 0 is Sunday
164 week number of year, with Monday as first day of week (00..53)
167 locale's date representation (e.g., 12/31/99)
170 locale's time representation (e.g., 23:13:48)
173 last two digits of year (00..99)
179 +hhmm numeric time zone (e.g., \fB\-0400\fR)
182 +hh:mm numeric time zone (e.g., \fB\-04\fR:00)
185 +hh:mm:ss numeric time zone (e.g., \fB\-04\fR:00:00)
188 numeric time zone with : to necessary precision (e.g., \fB\-04\fR, +05:30)
191 alphabetic time zone abbreviation (e.g., EDT)
193 By default, date pads numeric fields with zeroes.
194 The following optional flags may follow '%':
197 (hyphen) do not pad the field
200 (underscore) pad with spaces
203 (zero) pad with zeros
206 use upper case if possible
209 use opposite case if possible
211 After any flags comes an optional field width, as a decimal number;
212 then an optional modifier, which is either
213 E to use the locale's alternate representations if available, or
214 O to use the locale's alternate numeric symbols if available.
216 Convert seconds since the epoch (1970\-01\-01 UTC) to a date
218 \f(CW$ date --date='@2147483647'\fR
220 Show the time on the west coast of the US (use tzselect(1) to find TZ)
222 \f(CW$ TZ='America/Los_Angeles' date\fR
224 Show the local time for 9AM next Friday on the west coast of the US
226 \f(CW$ date --date='TZ="America/Los_Angeles" 09:00 next Fri'\fR
228 .\" NOTE: keep this paragraph in sync with the one in touch.x
229 The --date=STRING is a mostly free format human readable date string
230 such as "Sun, 29 Feb 2004 16:21:42 -0800" or "2004-02-29 16:21:42" or
231 even "next Thursday". A date string may contain items indicating
232 calendar date, time of day, time zone, day of week, relative time,
233 relative date, and numbers. An empty string indicates the beginning
234 of the day. The date string format is more complex than is easily
235 documented here but is fully described in the info documentation.
237 Written by David MacKenzie.
239 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
241 Report date translation bugs to <http://translationproject.org/team/>
243 Copyright \(co 2016 Free Software Foundation, Inc.
244 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
246 This is free software: you are free to change and redistribute it.
247 There is NO WARRANTY, to the extent permitted by law.
249 Full documentation at: <http://www.gnu.org/software/coreutils/date>
251 or available locally via: info \(aq(coreutils) date invocation\(aq