Setting the Time Zone (timezone)
Function
The timezone command is used to set the time zone.
Format
ipmcset -d timezone -v <timezone>
Parameters
Parameter |
Description |
Value |
---|---|---|
timezone |
Specifies the time zone. |
You can set the time zone by specifying either of the following:
NOTE:
The UTC time is set when an area name is specified or the time offset specified does not contain the standard time name. |
Usage Guidelines
In the time zones that use daylight saving time (DST), the iBMC automatically adjusts the time one hour forward when the DST starts and adjusts the time backward to standard time when the DST ends.
Example
# Set the iBMC time zone to +8:00.
iBMC:/->ipmcset -d timezone -v +8:00
Set time zone successfully.
# Set the iBMC time zone to UTC+8:00.
iBMC:/->ipmcset -d timezone -v UTC+8:00
Set time zone successfully.
# Query the iBMC time zone.
iBMC:/->ipmcget -d time
2014-06-28 Saturday 16:43:51 UTC+08:00
# Set the iBMC time zone to Asia/Shanghai.
iBMC:/->ipmcset -d timezone -v Asia/Shanghai
Set time zone successfully.
# Query the iBMC time zone.
iBMC:/->ipmcget -d time
2017-09-06 Wednesday 16:43:51 Asia/Shanghai(UTC+08:00)