date
date [OPTIONS] [format]
print or set the system date and time
Options
--help,-h-
Print help information
--version,-V-
Print version information
--date,-d-
display time described by STRING, not 'now'
--file,-f-
like --date; once for each line of DATEFILE
--iso-8601,-I-
output date/time in ISO 8601 format. FMT='date' for date only (the default), 'hours', 'minutes', 'seconds', or 'ns' for date and time to the indicated precision. Example: 2006-08-14T02:34:56-06:00
--rfc-email,-R-
output date and time in RFC 5322 format. Example: Mon, 14 Aug 2006 02:34:56 -0600
--rfc-3339-
output date/time in RFC 3339 format. FMT='date', 'seconds', or 'ns' for date and time to the indicated precision. Example: 2006-08-14 02:34:56-06:00
--debug-
annotate the parsed date, and warn about questionable usage to stderr
--reference,-r-
display the last modification time of FILE
--set,-s-
set time described by STRING
--universal,-u-
print or set Coordinated Universal Time (UTC)