| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Daylight Saving ? |
Here's something that the boys (Ted Menks, et. al) cooked up in this
echo a while ago:
set Daytm=%{at}doy[4-%{at}eval[8-%{at}dowi[4-7-%_year]]-4-%_year].02
set Stdtm=%{at}doy[10-%{at}eval[32-%{at}dowi[10-31-%_year]]-%_year].02
set toDay=%{at}doy[%_date].%{at}right[2,0%_hour]
iff %toDay ge %Daytm .and. %toDay lt %Stdtm then
set TZ=UTC+7
echo TZ set for Pacific Daylight Savings Time (UTC + 7 hours)
else
set TZ=UTC+8
echo TZ set for Pacific Standard Time (UTC + 8 hours)
endiff
REM Or a more compact version (include first 3 set commands too):
REM set TZ=UTC+%{at}if[%toDay ge %Daytm .and. %toDay lt %Stdtm,7,8]
unset toDay Daytm Stdtm
jh -
--- Platinum Xpress/Wildcat! v1.3e
* Origin: mBox BBS Glendora, CA (1:218/907)SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 635/444 506 728 639/50 252 @PATH: 218/907 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™.