User`s manual
IA260-261-262 EM-2260 LX User’s Manual  Managing Embedded Linux 
Adjusting the System Time 
Setting the Time Manually 
The IA260/IA261/IA262/EM-2260 has two time settings. One is the system time, and the other is 
the RTC (Real Time Clock) time kept by the IA260/IA261/IA262/EM-2260’s 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 
The following figure illustrates how to update the system 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 120910002004 
Thu Dec  9 10:00:00 CST 2004 
root@Moxa:~# hwclock –w 
root@Moxa:~# date ; hwclock 
Thu Dec  9 10:01:07 CST 2004 
Thu Dec  9 10:01:08 2004  -0.933547 seconds 
root@Moxa:~# 
3-8










