|
|
1.1 ! root 1: .TH DATE 1 ! 2: .CT 1 time_man sa_nonmortals inst_info ! 3: .SH NAME ! 4: date \- print or set the date ! 5: .SH SYNOPSIS ! 6: .B date ! 7: .RB " ! 8: [ ! 9: .I yymmddhhmm ! 10: [ ! 11: .I " . "ss ! 12: ] ! 13: ] ! 14: .I " ! 15: .SH DESCRIPTION ! 16: If no argument is given, the current date and time are printed. ! 17: If an argument is given and the user is ! 18: the super-user, the current date is set. ! 19: .I yy ! 20: is the last two digits of the year; ! 21: the first ! 22: .I mm ! 23: is the month number; ! 24: .I dd ! 25: is the day number in the month; ! 26: .I hh ! 27: is the hour number (24 hour system); ! 28: the second ! 29: .I mm ! 30: is the minute number; ! 31: .BI . ss ! 32: is optional and is the seconds. ! 33: The year, month and day may be omitted, the current ! 34: values being the defaults. ! 35: The system operates in GMT. ! 36: .I Date ! 37: takes care of the conversion to and from ! 38: local standard and daylight time. ! 39: The options are ! 40: .TP ! 41: .B -u ! 42: Set or report GMT rather than local time. ! 43: .TP ! 44: .B -n ! 45: Set or report the date as the number of seconds since the ! 46: epoch. ! 47: .SH EXAMPLES ! 48: .TP ! 49: .L ! 50: date 10080045 ! 51: Set the date to Oct 8, 12:45 AM, local time. ! 52: .SH FILES ! 53: .F /usr/adm/wtmp ! 54: to record time-setting ! 55: .SH SEE ALSO ! 56: .IR utmp (5) ! 57: .SH DIAGNOSTICS ! 58: `No permission' ! 59: if a non-super user tries to change the date; ! 60: `bad conversion' ! 61: if the date is invalid.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.