| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | SET TZ= ??? |
Hi Neall,
You wrote to GORD HANNAH on 07.03.03 about "SET TZ= ???":
NM>> What will I put on the SET TZ=
NM>> 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. ;)
Make sure that your message reader screen is set to at least 80
columns wide for this Neall. I quote from one of the "bibles" :-
======================== Quote on ===============================
VisualAge C++ TZ setting
========================
Example (for Germany):
SET TZ=CET-1CST,3,-1,0,7200,10,-1,0,10800,3600
3 = starting month (1..12): march
-1 = starting week (-4..4): last week of this month
0 = starting day: sunday
7200 = starting time (seconds): 02:00:00
10 = ending month: october
-1 = ending week: last week of this month
0 = ending day sunday
10800 = ending time (seconds): 03:00:00
3600 = amount of time change (s): 01:00:00
This variable is used to describe the timezone information that the locale
will use. To set TZ, use the SET which has the following format:
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ ³
³
>>ÄÄSETÄÄTZÄÄ=ÄÄSSSÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ>
³
³ ÀÄÂÄÄÄÂÄÄhÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÙ ³
³ ÃÄ+Ä´ ÀÄ:ÄÄmÄÄÂÄÄÄÄÄÄÂÄÙ ³
³ ÀÄÁÄÙ ÀÄ:ÄÄsÄÙ ³
³ ³
³
>ÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ><
³
³ ÀÄDDDÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÙ ³
³ ÀÄ,sm,sw,sd,st,em,ew,ed,et,shiftÄÙ ³
³ ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
The values for the TZ variable are defined below. The default values given
are for the built-in "C" locale defined by the ANSI C standard.
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Table 1. TZ Environment Variable Parameters ³
ÃÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ VARIABLE ³ DESCRIPTION ³ DEFAULT VALUE ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ SSS ³ Standard-timezone identifier. It must be ³ EST ³
³ ³ three characters, must begin with a letter, ³ ³
³ ³ and can contain spaces. ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ h, m, s ³ The variable h specifies the difference (in ³ 5 ³
³ ³ hours) between the standard time zone and ³ ³
³ ³ coordinated universal time (CUT), formerly ³ ³
³ ³ Greenwich mean time (GMT). You can ³ ³
³ ³ optionally use m to specify minutes after ³ ³
³ ³ the hour, and s to specify seconds after ³ ³
³ ³ the minute. A positive number denotes time ³ ³
³ ³ zones west of the Greenwich meridian; a ³ ³
³ ³ negative number denotes time zones east of ³ ³
³ ³ the Greenwich meridian. The number must be ³ ³
³ ³ an integer value. ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ DDD ³ Daylight saving time (DST) zone identifier. ³ EDT ³
³ ³ It must be three characters, must begin ³ ³
³ ³ with a letter, and can contain spaces. ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ sm ³ Starting month (1 to 12) of DST. ³ 4 ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ sw ³ Starting week (-4 to 4) of DST. Use nega- ³ 1 ³
³ ³ tive numbers to count back from the last ³ ³
³ ³ week of the month (-1) and positive numbers ³ ³
³ ³ to count from the first week (1). ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ sd ³ Starting day of DST. ³ 0 ³
³ ³ 0 to 6 if sw != 0 ³ ³
³ ³ 1 to 31 if sw = 0 ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ st ³ Starting time (in seconds) of DST. ³ 3600 ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ em ³ Ending month (1 to 12) of DST. ³ 10 ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ ew ³ Ending week (-4 to 4) of DST. Use negative ³ -1 ³
³ ³ numbers to count back from the last week of ³ ³
³ ³ the month (-1) and positive numbers to ³ ³
³ ³ count from the first week (1). ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ ed ³ Ending day of DST. ³ 0 ³
³ ³ 0 to 6 if ew != 0 ³ ³
³ ³ 1 to 31 if ew = 0 ³ ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ et ³ Ending time of DST (in seconds). ³ 7200 ³
ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ shift ³ Amount of time change (in seconds). ³ 3600 ³
ÀÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
For example:
SET TZ=CST6CDT
sets the standard time zone to CST, the daylight saving time zone to CDT,
and sets a difference of 6 hours between CST and CUT.
It does not set any values for the start and end date of daylight saving time
or the time shifted.
When TZ is not present, the default is EST5EDT, the "C" locale value. When
only the standard time zone is specified, the default value of n (difference
in hours from GMT) is 0 instead of 5.
If you give values for any of sm, sw, sd, st, em, ew, ed, et, or shift, you
must give values for all of them or the entire statement is considered not
valid, and the time zone information is not changed.
The value of TZ can be accessed and changed by the tzset function.
For more information on tzset, see the C Library Reference.
(Taken from IBM VisualAge C++ Online Reference)
======================== Quote off ===========================
That should keep you quiet for 5 minutes ....... or more :*)
TTFN,
Archie
--- CrossPoint [OpenXP/16] v3.40 RC3 R
* Origin: Templar's Refuge #2 (2:250/501.11)SEEN-BY: 633/267 270 @PATH: 250/501 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™.