TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: Marc Buffet
from: Ken Whiton
date: 1998-12-11 03:48:00
subject: Daylight Saving ?

*-* On {10 Dec 98  09:23:46}, Morris Turpin wrote to Marc Buffet *-*
*-* Concerning: Daylight Saving ? *-*

 MB>> I am searching for a batch file to set the variable acording to the
 MB>> Daylight saving time. From the last sunday of march till the last
 MB>> sunday of October it should be set as SET TZUTX=+0200 otherwhise it
 MB>> should be TZUTC=+0100

 MT> Here's the batch file that I use to dial up our local time standard
 MT> and set the time.  It also includes code to set DST as required.
 MT> Replace my +4 for your +1 and my +5 for your +2 and remove the dialup
 MT> NRC part and you should have what you're looking for.

    Since you and Morris are on opposite sides of UT (You're plus, while
he's minus.), you need to replace his "4" with your
"2", and his "5" with
your "1".

 MT> rem Get Daylite time jumpforward date

 MT>     for %a in (1 2 3 4 5 6 7) do (
 MT>             date 04-%a-%year
 MT>             if "%_dow" eq "sun" set daytmdate=%_date
 MT>             )

    For your requirements (last Sunday of March), that should be

    for %a in (25 26 27 28 29 30 31) do (
            date 03-%a-%year

                                       Ken Whiton

... COMMAND.COM [bug]:  Bug found in DOS, for patch see 4DOS, or DELETE...
--- AdeptXBBS v1.11zb2 (FREEWare/2)
* Origin: The Cereal Port BBS 603-899-3335 207.22.43.36 (1:132/152)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/50 252
@PATH: 3651/9 396/1 633/260 635/506 728 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™.