|
|
1.1 root 1: .TH DATE 1
2: .SH NAME
3: date \- print the date
4: .SH SYNOPSIS
5: .B date
6: [
7: .I option
8: ] [
9: .I seconds
10: ]
11: .SH DESCRIPTION
12: Print the date, in the format
13: .PP
14: .B
15: Tue Aug 16 17:03:52 CDT 1977
16: .PP
17: The options are
18: .TP
19: .B -u
20: Report Greenwich Mean Time (GMT) rather than local time.
21: .TP
22: .B -n
23: Report the date as the number of seconds since the
24: epoch, 00:00:00 GMT, January 1, 1970.
25: .PP
26: The conversion from Greenwich Mean Time to local time depends on the
27: .B $timezone
28: environment variable; see
29: .IR ctime (2).
30: .PP
31: If the optional argument
32: .I seconds
33: is present, it is used as the time to convert rather than
34: the real time.
35: .SH FILES
36: .TF /adm/timezone/local
37: .TP
38: .B /env/timezone
39: Current timezone name and adjustments.
40: .TP
41: .B /adm/timezone
42: A directory containing timezone tables.
43: .TP
44: .B /adm/timezone/local
45: Default timezone file, copied by
46: .IR init (8)
47: into
48: .BR /env/timezone .
49: .SH SOURCE
50: .B /sys/src/cmd/date.c
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.