date.1 (1114B)
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 .TP 28 .B -i 29 Report the date as ISO-8601 without time and timezone suffix. 30 .TP 31 .B -t 32 Report the date as ISO-8601 with time and timezone suffix. 33 .PP 34 The conversion from Greenwich Mean Time to local time depends on the 35 .B $timezone 36 environment variable; see 37 .IR ctime (3). 38 .PP 39 If the optional argument 40 .I seconds 41 is present, it is used as the time to convert rather than 42 the real time. 43 .\" .SH FILES 44 .\" .TF /adm/timezone/local 45 .\" .TP 46 .\" .B /env/timezone 47 .\" Current timezone name and adjustments. 48 .\" .TP 49 .\" .B /adm/timezone 50 .\" A directory containing timezone tables. 51 .\" .TP 52 .\" .B /adm/timezone/local 53 .\" Default timezone file, copied by 54 .\" .IR init (8) 55 .\" into 56 .\" .BR /env/timezone . 57 .\" .PD 58 .SH SOURCE 59 .B \*9/src/date/date.c