HP3000-L Archives

July 2011, Week 3

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:
donna hofmeister <[log in to unmask]>
Reply To:
Date:
Fri, 15 Jul 2011 07:09:25 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (169 lines)
Or stan....      - d

--------------------------------------------------

Date:         Fri, 17 Apr 1998 15:55:37 -0700
Reply-To: Stan Sieler <[log in to unmask]>
Sender: HP-3000 Systems Discussion <[log in to unmask]>
From: Stan Sieler <[log in to unmask]>
Subject:      Re: time
To: [log in to unmask]

One final (I hope) comment about time()...

I erred in saying that SETCLOCK doesn't change the hardware clock.
A SETCLOCK can set both the system (local) time *and* the hardware clock
(and the GMT offset!)

Steve Cooper demonstrated a method of getting both the hardware clock
and software clock and GMT offset "fixed" without rebooting.

I turned it into a command file, and it worked for the two simple
test cases I tried...

If your local time is correct, and you want to fix the hardware clock
(and GMT time), this command file may be simpler than shutting
down, using CLKUTIL, and rebooting.

Usage:
   If you're in California, and your local time is correct, you can
   fix the GMT by doing:

      fixclock 7

   If you're in California, and your local time is wrong (and the
   GMT offset is also wrong), you can fix everything by doing:

      setclock date=mm/dd/yy;time=hh:mm; now

   Note that ";NOW" may have repercussions in various places.

   and then

      fixclock 7

SS
----------------cut here for FIXCLOCK.CMD---------------------------
parm gmt_offset_hours = 99, gmt_offset_minutes = 0

comment FIXCLOCK.CMD version 98A
comment written by Steve Cooper and Stan Sieler 1998-04-17

if !gmt_offset_hours = 99 then
   echo
   echo This command has one required parameter: the number of
   echo hours your local time is offset from GMT.
   echo If you are in California, for example, the
   echo offset is 8 hours for PST, and 7 hours during PDT.
   echo
   echo The second (optional) parameter is the additional
   echo number of minutes your local time is offset from GMT.
   echo
   echo Thus, if you should be 3:30 off from GMT (e.g., in
   echo Newfoundland regular time):
   echo    fixclock 3, 30
   echo
   echo If you are in California *and* it's now Daylight Savings Time,
   echo    fixclock 7
   echo
   echo If you are EAST of GMT, use negative numbers.
   echo
   return
   endif

if (!gmt_offset_hours > 23) or (!gmt_offset_hours < -23) then
   echo
   echo Sorry, gmt_offset_hours must be in the range -23..23
   error
   return
   endif

if (!gmt_offset_hours < 0) or (!gmt_offset_minutes < 0) then
   setvar _prefix "E"
   if (!gmt_offset_hours < 0) and (!gmt_offset_minutes > 0) then
      echo
      echo Sorry, the hours and minutes must both be <= 0
      error
      return
      endif
else
   setvar _prefix "W"
   endif

setvar _orig_date "!hpmonth/!hpdate/!hpyear"
setvar _orig_time "!hphour:!hpminute"
comment there is no hpsecond

comment the following assumes everything works :)

setclock timezone=!_prefix!gmt_offset_hours:!gmt_offset_minutes

setclock ; cancel
comment the "cancel" doesn't undo the timezone change!

setclock date=!_orig_date; time=!_orig_time; now

showclock
-------------------------------------cut here---------------------------------

---
Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330

> -----Original Message-----
> From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf Of Craig Lalley
> Sent: Friday, July 15, 2011 6:54 AM
> To: [log in to unmask]
> Subject: Re: [HP3000-L] PH729C8 and SYSDATE
>
> James,
>
> Perhaps Steve Cooper can explain the trick.
>
> I use the command file a lot and it does work.
>
> -Craig
>
>
> --- On Fri, 7/15/11, James B. Byrne <[log in to unmask]> wrote:
>
> From: James B. Byrne <[log in to unmask]>
> Subject: Re: PH729C8 and SYSDATE
> To: [log in to unmask]
> Date: Friday, July 15, 2011, 6:46 AM
>
> On Fri, July 15, 2011 09:17, James B. Byrne wrote:
>
> >
> > Because, as someone else suggested, my hardware clock is off.  How
> > does one reset the hardware clock without rebooting?
> >
> > I have tried 'setclock date=7/15/2011;time=hh:mm:ss;now' but that
> > does not change the GMT setting as shown when I subsequently run
> > showclks.pubxl.telesup.
> >
>
> I have rebooted and reset the hardware clock in the ISL.  If there
> is another way to do this without having to restart the machine then
> I would appreciate learning the details if someone would be so kind
> as to explain the procedure.
>
>
> --
> ***          E-Mail is NOT a SECURE channel          ***
> James B. Byrne                mailto:[log in to unmask]
> Harte & Lyne Limited          http://www.harte-lyne.ca
> 9 Brockley Drive              vox: +1 905 561 1241
> Hamilton, Ontario             fax: +1 905 561 0757
> Canada  L8E 3C3
>
> * 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 *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2