.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.33. .TH DATE "1" "March 2004" "date (coreutils) 5.2.1" "User Commands" .SH NAME date \- print or set the system date and time .SH SYNOPSIS .B date [\fIOPTION\fR]... [\fI+FORMAT\fR] .br .B date [\fI-u|--utc|--universal\fR] [\fIMMDDhhmm\fR[[\fICC\fR]\fIYY\fR][\fI.ss\fR]] .SH DESCRIPTION .\" Add any additional description here .PP Display the current time in the given FORMAT, or set the system date. .TP \fB\-d\fR, \fB\-\-date\fR=\fISTRING\fR display time described by STRING, not `now' .TP \fB\-f\fR, \fB\-\-file\fR=\fIDATEFILE\fR like \fB\-\-date\fR once for each line of DATEFILE .TP \fB\-ITIMESPEC\fR, \fB\-\-iso\-8601\fR[=\fITIMESPEC\fR] output date/time in ISO 8601 format. TIMESPEC=`date' for date only, `hours', `minutes', or `seconds' for date and time to the indicated precision. \fB\-\-iso\-8601\fR without TIMESPEC defaults to `date'. .TP \fB\-r\fR, \fB\-\-reference\fR=\fIFILE\fR display the last modification time of FILE .TP \fB\-R\fR, \fB\-\-rfc\-2822\fR output RFC-2822 compliant date string .TP \fB\-s\fR, \fB\-\-set\fR=\fISTRING\fR set time described by STRING .TP \fB\-u\fR, \fB\-\-utc\fR, \fB\-\-universal\fR print or set Coordinated Universal Time .TP \fB\-\-help\fR display this help and exit .TP \fB\-\-version\fR output version information and exit .PP FORMAT controls the output. The only valid option for the second form specifies Coordinated Universal Time. Interpreted sequences are: .TP %% a literal % .TP %a locale's abbreviated weekday name (Sun..Sat) .TP %A locale's full weekday name, variable length (Sunday..Saturday) .TP %b locale's abbreviated month name (Jan..Dec) .TP %B locale's full month name, variable length (January..December) .TP %c locale's date and time (Sat Nov 04 12:02:33 EST 1989) .TP %C century (year divided by 100 and truncated to an integer) [00-99] .TP %d day of month (01..31) .TP %D date (mm/dd/yy) .TP %e day of month, blank padded ( 1..31) .TP %F same as %Y-%m-%d .TP %g the 2-digit year corresponding to the %V week number .TP %G the 4-digit year corresponding to the %V week number .TP %h same as %b .TP %H hour (00..23) .TP %I hour (01..12) .TP %j day of year (001..366) .TP %k hour ( 0..23) .TP %l hour ( 1..12) .TP %m month (01..12) .TP %M minute (00..59) .TP %n a newline .TP %N nanoseconds (000000000..999999999) .TP %p locale's upper case AM or PM indicator (blank in many locales) .TP %P locale's lower case am or pm indicator (blank in many locales) .TP %r time, 12-hour (hh:mm:ss [AP]M) .TP %R time, 24-hour (hh:mm) .TP %s seconds since `00:00:00 1970-01-01 UTC' (a GNU extension) .TP %S second (00..60); the 60 is necessary to accommodate a leap second .TP %t a horizontal tab .TP %T time, 24-hour (hh:mm:ss) .TP %u day of week (1..7); 1 represents Monday .TP %U week number of year with Sunday as first day of week (00..53) .TP %V week number of year with Monday as first day of week (01..53) .TP %w day of week (0..6); 0 represents Sunday .TP %W week number of year with Monday as first day of week (00..53) .TP %x locale's date representation (mm/dd/yy) .TP %X locale's time representation (%H:%M:%S) .TP %y last two digits of year (00..99) .TP %Y year (1970...) .TP %z RFC-2822 style numeric timezone (-0500) (a nonstandard extension) .TP %Z time zone (e.g., EDT), or nothing if no time zone is determinable .PP By default, date pads numeric fields with zeroes. GNU date recognizes the following modifiers between `%' and a numeric directive. .IP `-' (hyphen) do not pad the field `_' (underscore) pad the field with spaces .SH ENVIRONMENT .TP TZ Specifies the timezone, unless overridden by command line parameters. If neither is specified, the setting from /etc/localtime is used. .SH AUTHOR Written by David MacKenzie. .SH "REPORTING BUGS" Report bugs to . .SH COPYRIGHT Copyright \(co 2004 Free Software Foundation, Inc. .br This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. .SH "SEE ALSO" The full documentation for .B date is maintained as a Texinfo manual. If the .B info and .B date programs are properly installed at your site, the command .IP .B info coreutils date .PP should give you access to the complete manual.