plan9port/man/man1/date.1

59 lines
1.1 KiB
Groff
Raw Normal View History

2004-04-10 18:53:55 +00:00
.TH DATE 1
.SH NAME
2005-01-13 04:49:19 +00:00
date \- date and time
2004-04-10 18:53:55 +00:00
.SH SYNOPSIS
.B date
[
.I option
] [
.I seconds
]
2005-01-03 06:40:20 +00:00
.\" .br
.\" .B clock
2004-04-10 18:53:55 +00:00
.SH DESCRIPTION
Print the date, in the format
.PP
.B
Tue Aug 16 17:03:52 CDT 1977
.PP
The options are
.TP
.B -u
Report Greenwich Mean Time (GMT) rather than local time.
.TP
.B -n
Report the date as the number of seconds since the
epoch, 00:00:00 GMT, January 1, 1970.
.PP
The conversion from Greenwich Mean Time to local time depends on the
.B $timezone
environment variable; see
2005-01-03 06:40:20 +00:00
.IR ctime (3).
2004-04-10 18:53:55 +00:00
.PP
If the optional argument
.I seconds
is present, it is used as the time to convert rather than
the real time.
2005-01-03 06:40:20 +00:00
.\" .SH FILES
.\" .TF /adm/timezone/local
.\" .TP
.\" .B /env/timezone
.\" Current timezone name and adjustments.
.\" .TP
.\" .B /adm/timezone
.\" A directory containing timezone tables.
.\" .TP
.\" .B /adm/timezone/local
.\" Default timezone file, copied by
.\" .IR init (8)
.\" into
.\" .BR /env/timezone .
.\" .PD
.\" .PP
.\" .I Clock
.\" draws a simple analog clock in its window.
2004-04-10 18:53:55 +00:00
.SH SOURCE
2005-01-11 17:37:33 +00:00
.B \*9/src/cmd/date.c
2005-01-03 06:40:20 +00:00
.\" .br
2005-01-11 17:37:33 +00:00
.\" .B \*9/src/cmd/draw/clock.c