2011-05-23 18:00:31 +00:00
|
|
|
.TH DATE 1 sbase\-VERSION
|
|
|
|
.SH NAME
|
|
|
|
date \- print date and time
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.B date
|
|
|
|
.RB [ \-d
|
|
|
|
.IR time ]
|
2012-04-23 15:32:24 +00:00
|
|
|
.RB [ \-u ]
|
2011-05-23 18:00:31 +00:00
|
|
|
.RI [+ format ]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.B date
|
|
|
|
prints the date and time. If a
|
|
|
|
.I format
|
|
|
|
is given it is used to format the date as per
|
2011-05-25 17:29:46 +00:00
|
|
|
.IR strftime (3).
|
2011-05-23 18:00:31 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
.BI \-d " time"
|
|
|
|
prints
|
|
|
|
.I time
|
|
|
|
instead of the system time, given as the number of seconds since the Unix epoch.
|
2012-04-23 15:32:24 +00:00
|
|
|
.TP
|
|
|
|
.B \-u
|
|
|
|
prints UTC time instead of local time.
|
2011-05-25 17:29:46 +00:00
|
|
|
.SH SEE ALSO
|
|
|
|
.IR strftime (3)
|