HP3000-L Archives

November 1996, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Joerger <[log in to unmask]>
Reply To:
John Joerger <[log in to unmask]>
Date:
Tue, 5 Nov 1996 16:15:32 -0800
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (42 lines)
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

ATOM RSS1 RSS2