Don't forget to also modify your SETCLOCK criteria when traversing to
and from DST according to the new DST rules to come into effect next year.
For most applications, correct setting of the TIMEZONE at the
appropriate date is arguably more important than a correct TZTAB file
- although correct instances of both are best.
I've taken the liberty to include a sample job stream file from Dave
Powell - from 3000L Aug. 8, 2005 - that is suitable for the DST algorithm.
I leave it to the reader to simplify this job stream to eliminate
checking the year, since this check is now superflous.
The example following is suitable for the Pacific timezone.
Adjust accordingly for your own timezone.
>!# Check for Daylight Saving Time change -- NEW (readable?)
>!IF HPDAY = 1
>! IF HPYYYY <= 2006
>! IF HPMONTH = 4 AND HPDATE < 8
>! SETCLOCK TIMEZONE = W7:00
>! ELSEIF HPMONTH = 10 AND HPDATE > 24
>! SETCLOCK TIMEZONE = W8:00
>! ENDIF
>! ELSE
>! IF HPMONTH = 3 AND HPDATE >= 8 AND HPDATE <= 14
>! SETCLOCK TIMEZONE = W7:00
>! ELSEIF HPMONTH = 11 AND HPDATE <= 7
>! SETCLOCK TIMEZONE = W8:00
>! ENDIF
>! ENDIF
>!ENDIF
>
>or, if you don't like white space....
>
>!# Check for Daylight Saving Time change -- NEW (condensed)
>!IF HPMONTH=3 AND HPDAY=1 AND HPYYYY>2006 AND HPDATE>7 AND HPDATE<15
>! SETCLOCK TIMEZONE = W7:00
>!ELSEIF HPMONTH=11 AND HPDAY=1 AND HPYYYY>2006 AND HPDATE<8
>! SETCLOCK TIMEZONE = W8:00
>!ELSEIF HPMONTH=4 AND HPDAY=1 AND HPYYYY<2007 AND HPDATE<8
>! SETCLOCK TIMEZONE = W7:00
>!ELSEIF HPMONTH=10 AND HPDAY=1 AND HPYYYY<2007 AND HPDATE>24
>! SETCLOCK TIMEZONE = W8:00
>!ENDIF
At 05:05 PM 2006/11/02, Vance, Jeff H (Cupertino) wrote:
>Yes. Sooner is better than later.
>
>Jeff
>
> > Can we install this file anytime?
> >
> > Ron Horner
> > -----Original Message-----
> > From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On
> > Behalf Of Tracy Pierce
> > Sent: Thursday, November 02, 2006 3:20 PM
> > To: [log in to unmask]
> > Subject: Re: [HP3000-L] 2007 U.S. daylight saving TZTAB available on
> > Jazz
> >
> > apply the patch, just don't bother saving your old TZTAB.
> >
> > take a look at the file's section for your own time zone, you can see
> > the current rules, if not intuit exactly how they're interpreted. if
> > the rules are changed again, your tztab file will need to grow to
> > accomodate, but it will never shrink: you can't undo a rule
> > that applies
> > in the past. note that the end of time occurs in 2038, be ready for
> > immortality to kick in.
> >
> > http://www.informatik.uni-frankfurt.de/doc/man/hpux/tztab.4.html
> >
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
>
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.5.430 / Virus Database: 268.13.23/513 - Release Date:
>2006/11/02 7:40 AM
-------------------------------------------------------------------------------------------------
Gilles Schipper
GSA Inc.
HP System Administration Specialists
300 John Street, Box 87651 Thornhill, ON Canada L3T 7R4
Voice: 905.889.3000 Fax: 905.889.3001
email: [log in to unmask] web: http://www.gsainc.com
-------------------------------------------------------------------------------------------------
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|