blob: 1ce96f384d4dab965db8b5d8bbaf2acd140fef7a [file] [log] [blame]
rsccfa37a72004-04-10 18:53:55 +00001.TH DATE 1
2.SH NAME
rscc8b63422005-01-13 04:49:19 +00003date \- date and time
rsccfa37a72004-04-10 18:53:55 +00004.SH SYNOPSIS
5.B date
6[
7.I option
8] [
9.I seconds
10]
rsc058b0112005-01-03 06:40:20 +000011.\" .br
12.\" .B clock
rsccfa37a72004-04-10 18:53:55 +000013.SH DESCRIPTION
14Print the date, in the format
15.PP
16.B
17 Tue Aug 16 17:03:52 CDT 1977
18.PP
19The options are
20.TP
21.B -u
22Report Greenwich Mean Time (GMT) rather than local time.
23.TP
24.B -n
25Report the date as the number of seconds since the
26epoch, 00:00:00 GMT, January 1, 1970.
27.PP
28The conversion from Greenwich Mean Time to local time depends on the
29.B $timezone
30environment variable; see
rsc058b0112005-01-03 06:40:20 +000031.IR ctime (3).
rsccfa37a72004-04-10 18:53:55 +000032.PP
33If the optional argument
34.I seconds
35is present, it is used as the time to convert rather than
36the real time.
rsc058b0112005-01-03 06:40:20 +000037.\" .SH FILES
38.\" .TF /adm/timezone/local
39.\" .TP
40.\" .B /env/timezone
41.\" Current timezone name and adjustments.
42.\" .TP
43.\" .B /adm/timezone
44.\" A directory containing timezone tables.
45.\" .TP
46.\" .B /adm/timezone/local
47.\" Default timezone file, copied by
48.\" .IR init (8)
49.\" into
50.\" .BR /env/timezone .
51.\" .PD
52.\" .PP
53.\" .I Clock
54.\" draws a simple analog clock in its window.
rsccfa37a72004-04-10 18:53:55 +000055.SH SOURCE
rscc3674de2005-01-11 17:37:33 +000056.B \*9/src/cmd/date.c
rsc058b0112005-01-03 06:40:20 +000057.\" .br
rscc3674de2005-01-11 17:37:33 +000058.\" .B \*9/src/cmd/draw/clock.c