Moxa DA-662A-I-16-LX [29/63] Adjusting the system time

Moxa DA-662A-I-8-LX [29/63] Adjusting the system time
DA-662A Series Software Managing Embedded Linux
3-8
Adjusting the System Time
Setting the Time Manually
The DA-662A series has two time settings. One is the system time, and the other is the RTC (Real-time Clock)
time kept by the DA-662A series hardware. Use the #date command to query the current system time or set
a new system time. Use #hwclock to query the current RTC time or set a new RTC time.
Use the following command to query the system time:
#date
Use the following command to query the RTC time:
#hwclock
Use the following command to set the system time:
#date MMDDhhmmYYYY
MM = Month
DD = Date
hhmm = hour and minute
YYYY = Year
Use the following command to set the RTC time:
#hwclock w
Write current system time to RTC
The following figure illustrates how to update thesystem time and set the RTC time.
192.168.3.127 - PuTTY
root@Moxa:~# date
Fri Jun 23 23:30:31 CST 2000
root@Moxa:~# hwclock
Fri Jun 23 23:30:35 2000 -0.557748 seconds
root@Moxa:~# date 070910002006
Sun Jul 9 10:00:00 CST 2006
root@Moxa:~# hwclock w
root@Moxa:~# date ; hwclock
Sun Jul 9 10:01:07 CST 2006
Sun Jul 9 10:01:08 2006 -0.933547 seconds
root@Moxa:~#

Содержание

Похожие устройства

Скачать