| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | TZ Variable |
Replying to a message from NEALL MERCADO 1:123/140 to GORD HANNAH,
About SET TZ= ???, On Fri Mar 07 2003
NM> What will I put on the SET TZ= command?
GH> Try this:SET TZ=PHT-8PHT,1,1,1,0,1,1,1,0,0
NM> I am curious about those strings, I will appreciate it if you can
NM> explain those string of commands to me. ;)
The best I can do for you is the following, I have no utilities that are
DOS or Windows for Time Zone Stuff. This is from a wonderful OS/2 program
Time368, which will automatically reset my system clock to its proper
settings according to a defined time server.
Any how here it is:
TZ Variable
The TZ variable is set by a line in the config.sys file. This information
corresponds to the IBM definition for the TZ variable in OS/2.
If you are in the continental USA, use one of these:
set TZ=PST8PDT
set TZ=MST7MDT
set TZ=CST6CDT
set TZ=EST5EDT
set TZ=AST4ADT
Some other countries for examples:
Israel: set TZ=IST-2IDT,4,3,6,3600,10,1,6,7200,3600
Italy: set TZ=CET-1CDT,3,-1,0,7200,10,-1,0,10800,3600
Newfoundland: set TZ=NST3:30NDT
New Zealand: set TZ=NZS12NZD,9,4,0,3600,3,4,0,7600,3600
Peru: set TZ=EST5EST,1,0,0,3600,2,0,0,3600,0
Singapore: set TZ=SST-8SST,1,1,1,0,1,1,1,0,0
Some countries and parts of the USA do not change time during the summer.
For these, use the following form:
set TZ=AAAOAAA,1,1,1,0,1,1,1,0,0
where AAA is the name of the time zone (MST for Mountain Standard Time,
CST for Central Standard Time, SST for Singapore Standard Time) and O is
the offset from UTC/GMT.
Otherwise you can construct your own TZ variable from the following
information. The string is composed of 10 parameters, separated by commas.
The first parameter is SSSnDDD where SSS is a 3-character label for
standard (winter) time. This is usually all letters, but can contain
digits and blanks after the first character. DDD is a corresponding label
for daylight savings time (summer time).
The n between the SSS and DDD is the number of hours UTC is different from
your local time (UTC - local time). Use +n or -n as appropriate.
If your local time zone is not an even number of hours from UTC, you may
use the form [+/-]hh:mm:ss. For example, PST+8:00:00PDT.
The remaining parameters deal with the dates and times when the change is
made to summer time and back to winter time. If your time changes follow
the USA rules, then you do not need to supply the remainder of the
parameters. Otherwise you need to supply them all. If only a portion of
the additional parameters are supplied, the whole set will be ignored and
they will appear to be totally ineffective.
Parameters 2-5 describe the start of summer time.
Parameter 2 The starting month of summer time (1-12).
Parameter 3 The starting week of summer time according to the following
list:
1 - the first week of the month
2 - the second week of the month
3 - the third week of the month
4 - the fourth week of the month
0 - the change occurs on a specific day of the month
-1 - the last week of the month
-2 - the next to last week of the month
-3 - the second to last week of the month
-4 - the third to last week of the month
Parameter 4 The starting day of summer time. The day of the month (1-31)
if parameter 3 was 0, otherwise the day of the week (0-6).
Parameter 5 The starting time-of-day (local time) in seconds. (3600
seconds is 1AM.)
Parameters 6-9 describe the end of summer time.
Parameter 6 The starting month of winter time.
Parameter 7 The starting week of winter time (coded like parameter 3.)
Parameter 8 The starting day of winter time. The day of the month (1-31)
if parameter 7 was 0, otherwise the day of the week (0-6).
Parameter 9 The starting time-of-day (local summer time) in seconds. (7200
seconds is 2AM.)
Parameter 10 The final parameter specifies the amount of time shift in
seconds (3600 = 1 hour.)
For example, I could use:
set TZ=PST+8PDT,4,1,0,3600,10,-1,0,7200,3600
In ordinary language, this reads as: Winter time is called 'PST' and
summer time is called 'PDT'. I am 8 hours West of the zero meridian.
Summer time starts on the first Sunday of April at 0100 local time. Summer
time ends on the last Sunday of October at 0200 local time. When summer
time is in effect, one hour (3600 seconds) is added to local time.
Note: EMX-based programs have a different format for the TZ variable. If
you use EMX programs, you can set that variable with the name EMXTZ. If
the variable EMXTZ is available, the EMX programs will use it in
preference to the TZ variable.
Clear as mud huh?
Hope this helps. Keep us posted.
We are a fine board trying to make it better.
http://www.pris.bc.ca/ghannah
ghannah{at}pris.bc.ca
Cheers! Gord
-=Team OS/2=-
--- timEd/2 1.10.y2k+
* Origin: Marsh BBS (c), Dawson Creek, BC Canada (1:17/23.1)SEEN-BY: 633/267 270 @PATH: 17/23 153/7715 140/1 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.