So...then the cure is to run a clock setting job *every Sunday* and not go
running about twice a year. You'll gain the benefit of regular scheduling
and a mostly time-sync'd system.
In step a-1 you'll find the following line:
!/NTP/CURRENT/bin/ntpdate "-B timesrv.someplace.com"
Clearly, this needs to be changed :-)
(if for some dreadful reason you're not running NTP...you might want to
check out 'nettime')
http://www.allegro.com/?page_id=77
(and while you're there, pick up a copy of 'bigdirs' and run it...please!)
Also, this job depends on the variable TZ being set -- which is easily done
in your system logon udc:
SETVAR TZ "PST8PDT"
(adapt as needed....)
And don't forget -- if your tztab file is out of date, just grab a copy from
another system. It's just a file....
If I remember correctly this job was adapted from logic developed by paul
christidis:
!JOB SETTIME,MANAGER.SYS;OUTCLASS=,5
!TELLOP SETTIME
!TELLOP ALL MPE SYSTEMS
!TELLOP ==SETTIME -- SYNCs SYSTEM CLOCK W/ TIME SERVER !
!# from the help text for setclock....
!# Results of the Time Zone Form
!#
!# If the change in time zone is to a later time (a change to Daylight
!# Savings Time or an "Eastern" geographic movement), both local time
!# and the time zone offset are changed immediately.
!#
!# The effect is that users of local system time will see an immediate
!# jump forward to the new time zone, while users of Universal Time
!# will see no change.
!#
!# If the change in time zone is to an earlier time (a change from
!# Daylight Savings to Standard Time or a "Western" geographic
!# movement), the time zone offset is changed immediately. Then the
!# local time slows down until the system time corresponds to the
!# time in the new time zone.
!#
!# The effect is that users of local system time will see a gradual
!# slowdown to match the new time zone, while users of Universal Time
!# will see an immediate forward jump, then a slowdown until the
!# system time again matches "real" Universal Time.
!#
!# This method of changing time zones ensures that no out-of-sequence
!# time stamps will occur either in local time or in Universal Time.
!#
!showclock
!showjob job=@j
!TELLOP ===================================== SETTIME A-1
!
!errclear
!continue
!/NTP/CURRENT/bin/ntpdate "-B timesrv.someplace.com"
!if hpcierr <> 0
! echo hpcierr !hpcierr (!hpcierrmsg)
! showvar
! tellop NTPDATE problem
!endif
!
!tellop SETTIME -- Pausing for time adjustment to complete....
!pause 60
!
!TELLOP ===================================== SETTIME B-1
!showclock
!
!setvar FallPoint &
! (hpyyyy<=2006 AND (hpmonth = 10 AND hpdate > 24)) OR &
! (hpyyyy>=2007 AND (hpmonth = 11 AND hpdate < 8))
!
!setvar SpringPoint &
! (hpyyyy<=2006 AND (hpmonth = 4 AND hpdate< 8)) OR &
! (hpyyyy>=2007 AND (hpmonth = 3 AND (hpdate > 7 AND hpdate < 15)))
!
!# TZ should always be found
! if hpday = 1
! if SpringPoint
!# switch to daylight savings time
! setvar _tz_offset ![rht(lft(TZ,4),1)]-1
! setclock timezone=w![_tz_offset]:00
! elseif FallPoint
!# switch to standard time
! setvar _tz_offset ![rht(lft(TZ,4),1)]
! setclock timezone=w![_tz_offset]:00
! endif
! endif
!endif
!
!TELLOP ===================================== SETTIME C-1
!
!showclock
!EOJ
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330
-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of Michael Caplin
Sent: Friday, March 09, 2012 4:43 AM
To: [log in to unmask]
Subject: [HP3000-L] SETCLOCK & TIMEZONE
Some day I'll write this down.
This Sunday when using setclock to set the time ahead one hour, should the
timezone be advanced one hour as well?
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|