Name

setdate — Sets the date in the real time clock

Synopsis

setdate {day} {month} {year}

Options

day

day of month to set

month

month to set

year

year to set, two digit values will have 2000 added

Description

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

Example 9.9. Using the setdate command to set the real time clock

>setdate 1 2 3
setdate: assuming year value is offset from 2000
>date
Sat Feb 01 17:59:52 2003
>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.20 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 (264)
TMP101: not detected
sys.autoshadow unset, automatically shadowing
>date
Sat Feb 01 18:00:04 2003
>setdate 10 3 2006
>date
Fri Mar 10 18:00:33 2006
>

See also

settime, date.