64 Sun Fire 6800/4810/4800/3800 System Controller Command Reference Manual • October 2001
setdate
Sets the date and time.
Scope
platform shell, domain shell
Syntax
setdate [-v] [-t time zone] [mmdd]HHMM
setdate [-v] [-t time zone] mmddHHMM [[cc]yy][.SS]
setdate [-v] [-r datehost]
setdate [-v] -t time zone
setdate [-v] -t GMT<+|-> offset from GMT (
TABLE 3-7)
setdate -h
Options/Parameters
-t time zone sets the time zone using the time zone abbreviation (TABLE 3-7). Only
non-daylight savings time zones can be specified. If you are in an area with daylight
time or summer time, the time and time zone are adjusted automatically for daylight
time or summer time.
-t GMT<+|->offset from Greenwich Mean Time—GMT (
TABLE 3-7).
mm is the month number.
dd day is the number in the month.
HH is the hour number (24-hour clock).
MM is the minute number.
cc is the century minus 1.
yy is the last two digits of the year number.
SS is the second number. For the century minus 1 value, use 21 (Twenty first
century) minus 1, which yields 20.