Name

settime — Sets the real time clock

Synopsis

settime {hour} {minute} {second}

Options

hour

hour to set using 24 hour clock

minute

minute to set

second

second to set

Description

This command allows the time to be set in the real time clock. The real time clock is typically battery backed and the settings are retained across reboots.

Example 41. Using the settime command to set the real time clock

This example shows the time being altered, the system reset and the retention and correct update of the time across the reset.

>date
Wed Mar 22 16:37:11 2006
>settime 1 2 3
>date
Wed Mar 22 01:02:03 2006
>reset
selected all-wr for console write
selected all-rd for console read
DRAM: 128 Mb (134217728 bytes)
BAST: PMU version 1.02, ID 00:01:3d:00:01:6a
ABLE 2.21r1 Copyright 2001-2005,2006 Simtec Electronics
hdb: ATAPI CDROM: TOSHIBA CD-ROM XM-7002B PIO mode 4
hdc: FUJITSU MHF2043AT: ATA PIO mode 4
hdc:Diagnosing disc drive: ok
(hdc) 4GB
(hdb) Drive Empty
DM9000: dm0: r1, 00:01:3d:00:01:6a int phy, link ok, 100Mbit full duplex
NE2000: ne0: ISA/Generic, 00:01:3d:00:01:6b
ne0: PHY 0180:bb10, state 7869, LPA 45e1,0007
ne0: starting PHY reset (262)
TMP101: not detected
sys.autoshadow unset, automatically shadowing
>date
Wed Mar 22 01:02:26 2006
>settime 16 40 0
>date
Wed Mar 22 16:40:00 2006
>

See also

setdate, date.