Specifications
Version 2.0
197
time
Summary
Displays or sets the current time for the system.
Usage
time [hh:mm[:ss]] [-tz tz] [-d dl]
Options
hh
New hour (0-23) (required)
mm
New minute (0-59) (required)
ss
New second (0-59) If not specified, then zero will be used.
-tz
Timezone adjustment, measured in minutes offset from GMT. Valid values can be
between -1440 and 1440 or 2047. If not present or set to 2047, time is
interpreted as local time.
-d
Indicates that time is not affected by daylight savings time (0), time is affected
by daylight savings time but time has not been adjusted (1), or time is affected
by daylight savings time and has been adjusted (3).. All other values are invalid.
If no value follows –d, then the current daylight savings time will be displayed.
Description
This command displays or sets the current time for the system. If no parameters are
used, it shows the current time. If valid hours, minutes, and seconds are provided,
then the system's time will be updated.
Note the following rules:
Except for numeric characters and the : character, all other characters in the
argument are invalid. The Shell will report an error if the number is in the wrong
hour/minute/second range.
Spaces before or after the numeric character are not allowed. Spaces inserted into the
number are not allowed either.
Repeated zeros are allowed before the number. For example:










