root@ubuntu:/# man date
DATE(1) User Commands DATE(1)
NAME
date - print orsetthesystemdateandtime
SYNOPSIS
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]
DESCRIPTION
Display the current timeinthe given FORMAT, orsetthesystemdate.
Mandatory arguments tolong options are mandatory forshort options too.
-d, --date=STRING
display time described by STRING, not'now'
-f, --file=DATEFILE
like --date; once for each line of DATEFILE
-I[FMT], --iso-8601[=FMT]
output date/timein ISO 8601format. FMT='date'fordate only (the default), 'hours', 'minutes', 'seconds', or'ns'fordateandtimetothe indicated preci‐
sion. Example: 2006-08-14T02:34:56-0600
-R, --rfc-2822
output dateandtimein RFC 2822format. Example: Mon, 14 Aug 200602:34:56 -0600--rfc-3339=FMT
output date/timein RFC 3339format. FMT='date', 'seconds', or'ns'fordateandtimetothe indicated precision. Example: 2006-08-1402:34:56-06:00
-r, --reference=FILE
display thelast modification timeof FILE
-s, --set=STRINGsettime described by STRING
-u, --utc, --universal
print orset Coordinated Universal Time (UTC)
--help display this help and exit--version
output version information and exit