2015-03-27 16:22:48 +00:00
|
|
|
.Dd March 27, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt DATE 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-23 21:54:25 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm date
|
|
|
|
.Nd print date and time
|
|
|
|
.Sh SYNOPSIS
|
2015-01-30 20:17:58 +00:00
|
|
|
.Nm
|
2015-01-23 21:54:25 +00:00
|
|
|
.Op Fl d Ar time
|
|
|
|
.Op Fl u
|
|
|
|
.Op Cm + Ns Ar format
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
prints the date and time according to
|
|
|
|
.Xr locale 7
|
|
|
|
or
|
|
|
|
.Ar format
|
|
|
|
using
|
|
|
|
.Xr strftime 3 .
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl d Ar time
|
|
|
|
Print
|
|
|
|
.Ar time
|
|
|
|
given as the number of seconds since the
|
|
|
|
Unix epoch 1970-01-01T00:00:00Z.
|
|
|
|
.It Fl u
|
|
|
|
Print UTC time instead of local time.
|
|
|
|
.El
|
|
|
|
.Sh STANDARDS
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility is compliant with the
|
2015-03-27 16:22:48 +00:00
|
|
|
.St -p1003.1-2013
|
2015-01-23 21:54:25 +00:00
|
|
|
specification.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Op Fl d
|
|
|
|
flag is an extension to that specification.
|