rsc | cfa37a7 | 2004-04-10 18:53:55 +0000 | [diff] [blame] | 1 | .TH DATE 1 |
| 2 | .SH NAME |
rsc | c8b6342 | 2005-01-13 04:49:19 +0000 | [diff] [blame] | 3 | date \- date and time |
rsc | cfa37a7 | 2004-04-10 18:53:55 +0000 | [diff] [blame] | 4 | .SH SYNOPSIS |
| 5 | .B date |
| 6 | [ |
| 7 | .I option |
| 8 | ] [ |
| 9 | .I seconds |
| 10 | ] |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 11 | .\" .br |
| 12 | .\" .B clock |
rsc | cfa37a7 | 2004-04-10 18:53:55 +0000 | [diff] [blame] | 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 |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 31 | .IR ctime (3). |
rsc | cfa37a7 | 2004-04-10 18:53:55 +0000 | [diff] [blame] | 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. |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 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. |
rsc | cfa37a7 | 2004-04-10 18:53:55 +0000 | [diff] [blame] | 55 | .SH SOURCE |
rsc | c3674de | 2005-01-11 17:37:33 +0000 | [diff] [blame] | 56 | .B \*9/src/cmd/date.c |
rsc | 058b011 | 2005-01-03 06:40:20 +0000 | [diff] [blame] | 57 | .\" .br |
rsc | c3674de | 2005-01-11 17:37:33 +0000 | [diff] [blame] | 58 | .\" .B \*9/src/cmd/draw/clock.c |