58 lines · 996 B · Text
RawDownload
.TH DATE 1.SH NAMEdate, clock \- date and time.SH SYNOPSIS.B date[.I option] [.I seconds].br.B clock.SH DESCRIPTIONPrint the date, in the format.PP.B	Tue Aug 16 17:03:52 CDT 1977.PPThe options are.TP.B -uReport Greenwich Mean Time (GMT) rather than local time..TP.B -nReport the date as the number of seconds since theepoch, 00:00:00 GMT, January 1, 1970..PPThe conversion from Greenwich Mean Time to local time depends on the.B $timezoneenvironment variable; see.IR ctime (2)..PPIf the optional argument.I secondsis present, it is used as the time to convert rather thanthe real time..PP.I Clockdraws a simple analog clock in its window..SH FILES.TF /adm/timezone/local.TP.B /env/timezoneCurrent timezone name and adjustments..TP.B /adm/timezoneA directory containing timezone tables..TP.B /adm/timezone/localDefault timezone file, copied by.IR init (8)into.BR /env/timezone ..PD.SH SOURCE.B /sys/src/cmd/date.c.br.B /sys/src/cmd/clock.c