Subject: | |
From: | |
Reply To: | |
Date: | Tue, 5 Nov 1996 16:15:32 -0800 |
Content-Type: | TEXT/PLAIN |
Parts/Attachments: |
|
|
On Mon, 28 Oct 1996, Patrick Anderson wrote:
> Now that DST time is over, I am trying to establish a way to calculate
> whether it's the first Sunday in April, or the last Sunday in October.
> I have the full suite of VESOFT tools, and I want a date expression
> where I can schedule changing the clock on the system. any
> suggestions?
I don't remember seeing an answer to this on the list. Here is what
we used and it worked fine. You will have to adjust the time zone
to fit your requirements.
!COMMENT
!JOB JTIMECHG,MANAGER.SYS;HIPRI
!TELLOP
!TELLOP -------------------------------------------
!TELLOP Adjust system clock for Dayligh Savings
!TELLOP -------------------------------------------
!TELLOP
!
!IF HPDay=1 AND HPMonth=10 AND HPDate>24 THEN
! COMMENT Have to fall back one hour
! CONTINUE
! SETCLOCK TimeZone=W8:00
!ELSEIF HPDay=1 AND HPMonth=4 AND HPDate<8 THEN
! COMMENT Have to spring forward one hour
! CONTINUE
! SETCLOCK TimeZone=W7:00
!ELSE
! COMMENT Today is not a time change day
! TELLOP -------------------------------------------
! TELLOP No change done because today is not a
! TELLOP time change day.
! TELLOP -------------------------------------------
!ENDIF
!EOJ
Regards,
John Joerger Press-Telegram (Long Beach)
[log in to unmask] http://www.ptconnect.com
|
|
|