Setting The Time Zone - Moxa Technologies ioThinx 4530 Series User Manual

Hide thumbs Also See for ioThinx 4530 Series:
Table of Contents

Advertisement

ioThinx 4530 Linux Manual

Setting the Time Zone

There are two ways to configure the Moxa embedded computer's timezone. One is using the TZ variable.
The other is using the /etc/localtime file.
Using the TZ Variable
The format of the TZ environment variable looks like this:
TZ=<Value>HH[:MM[:SS]][daylight[HH[:MM[:SS]]][,start date[/starttime], enddate[/endtime]]]
Here are some possible settings for the North American Eastern time zone:
TZ=EST5EDT
1.
TZ=EST0EDT
2.
TZ=EST0
3.
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 for 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
you restart the computer.
The following table lists other possible values for the TZ environment variable:
Hours From Greenwich Mean Time (GMT)
0
+1
+2
+2
+3
+3.5
+4
+5
+5.5
+6
+7
+8
+9
+9.5
+10
+11
+12
-11
-10
-9
-8
/etc/rc.local
. T
file
Value
GMT
ECT
EET
ART
EAT
MET
NET
PLT
IST
BST
VST
CTT
JST
ACT
AET
SST
NST
MIT
HST
AST
PST
2-9
Getting Started
he timezone setting will be activated when
Description
Greenwich Mean Time
European Central Time
European Eastern Time
Saudi Arabia
Iran
West Asia
India
Central Asia
Bangkok
China
Japan
Central Australia
Eastern Australia
Central Pacific
New Zealand
Samoa
Hawaii
Alaska
Pacific Standard Time

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ioThinx 4530 Series and is the answer not in the manual?

This manual is also suitable for:

Iothinx 4533-lx series

Table of Contents