date — Show the current real time clock date and time.
date
Show the current real time clock date and time. The settime and setdate commands can be used to set the real time clock and date.
Example 9.2. Using the date command
This example shows the use of the date command to get the current date and time, the date and time being kept across a reset and finally used to show a delay.
>date Fri Mar 10 01:38:00 2006 >date Fri Mar 10 01:38:08 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.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 (260) TMP101: not detected sys.autoshadow unset, automatically shadowing >date Fri Mar 10 01:38:24 2006 >date; sleep 22; date Fri Mar 10 01:38:44 2006 Fri Mar 10 01:39:06 2006 >