Moxa UC-8410A-T-LX [16/86] Cellular management

Moxa UC-8410A-T-LX [16/86] Cellular management
UC-8410A Series Linux Software Getting Started
2-10
Use the date MMDDhhmmYYYY command to set the system time:
MM = Month
DD = Date
hhmm = hour and minute
moxa@Moxa:~$ sudo date 071123192014
Mon Jul 11 23:19:00 UTC 2014
Use the following command to set the RTC time using the system time:
moxa@Moxa:~$ sudo hwclock –w
moxa@Moxa:~$ sudo hwclock
Fri 11 Jul 2014 11:19:38 PM UTC -1.006862 seconds
NOTE
Click the following links for more information on
date and time:
https://www.debian.org/doc/manuals/system
-administrator/ch-sysadmin-time.html
https://wiki.debian.
org/DateTime
Setting the Time Zone
There are two ways to configure the Moxa embedded computer’s time zone. One is using the TZ variable. The
other is using /etc/localtime file.
Using the TZ Variable
The format of the TZ environment variable format looks like this:
TZ=<Value>HH[:MM[:SS]][daylight[HH[:MM[:SS]]][,start date[/starttime], enddate[/endtime]]]
Here are some possible TZ settings for the North American Eastern time zone:
1. TZ=EST5EDT
2. TZ=EST0EDT
3. TZ=EST0
In the first case, the reference time is GMT and the stored time values are correct worldwide. A simple change
of the TZ variable can print the local time correctly in any time zone.
In the second case, the reference time is Eastern Standard Time and the only conversion performed is for
Daylight Saving Time. Therefore, there is no need to adjust the hardware clock for Daylight Saving Time twice
per year.
In the third case, the reference time is always the time reported. You can use this option if the hardware clock
on your machine automatically adjusts the Daylight Saving Time or you would like to manually adjust the
hardware time twice a year.
moxa@Moxa:~$ TZ= EST5EDT
moxa@Moxa:~$ export TZ
You must include the TZ setting in the
/etc/rc.d/rc.local file. The timezone setting will be activated when
you restart the computer.
The following table lists other possible values for the TZ environment variable:
Hours From Greenwich Mean Time (GMT) Value Description
0 GMT Greenwich Mean Time
+1 ECT European Central Time
+2 EET European Eastern Time
+2 ART
+3 EAT Saudi Arabia
+3.5 MET Iran

Содержание

Скачать