Blob


1 .TH DATE 1
2 .SH NAME
3 date \- date and time
4 .SH SYNOPSIS
5 .B date
6 [
7 .I option
8 ] [
9 .I seconds
10 ]
11 .\" .br
12 .\" .B clock
13 .SH DESCRIPTION
14 Print the date, in the format
15 .PP
16 .B
17 Tue Aug 16 17:03:52 CDT 1977
18 .PP
19 The options are
20 .TP
21 .B -u
22 Report Greenwich Mean Time (GMT) rather than local time.
23 .TP
24 .B -n
25 Report the date as the number of seconds since the
26 epoch, 00:00:00 GMT, January 1, 1970.
27 .PP
28 The conversion from Greenwich Mean Time to local time depends on the
29 .B $timezone
30 environment variable; see
31 .IR ctime (3).
32 .PP
33 If the optional argument
34 .I seconds
35 is present, it is used as the time to convert rather than
36 the real time.
37 .\" .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.
55 .SH SOURCE
56 .B \*9/src/cmd/date.c
57 .\" .br
58 .\" .B \*9/src/cmd/draw/clock.c