home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Newsgroups: bit.listserv.vm-util
- Path: sparky!uunet!paladin.american.edu!auvm!uvvm!klassen
- References: <VM-UTIL%92082803430489@OHSTVMA.IRCC.OHIO-STATE.EDU>
- Message-ID: <92241.163248KLASSEN@UVVM>
- Date: Fri, 28 Aug 1992 16:32:48 PDT
- Sender: VM Utilities Discussion List <VM-UTIL@OHSTVMA.BITNET>
- Comments: Warning -- original Sender: tag was NETNEWS@UVVM.UVIC.CA
- From: Melvin Klassen <KLASSEN@UVVM.BITNET>
- Subject: Re: YWAKEUP time problem
- Lines: 49
-
- Craig Cholar <3432P@NAVPGS> writes:
- >I'm using YWAKEUP to trap messages, and it works except I can't
- >get it to return a meaningful time value in the YWAKEUP.2 variable.
- >It's always off by about 7 hours or so.
- >So, how do I get that time to show something meaningful?
-
- This is a bug in the YWAKEUP code, i.e.,
- GETTIME1 LM R0,R1,D
- 0
- SRDL R0,12
- 0
- D R0,=F'8000000'
- 0
- LR R3,R0
- 0
- XR R2,R2
- 0
- D R2,=F'1000000'
- 0
- XR R0,R0
- 0
- SLDL R0,3
- 0
- ALR R1,R3
- 0
- BC 12,*+8
- 0
- A R0,=F'1' TIMEZONE FIX
- 0
- AL R1,TIMEZONE TIMEZONE FIX
- 0
- BC 12,*+8 TIMEZONE FIX
- 0
- A R0,=F'1' TIMEZONE FIX
- 0
- D R0,=F'86400'
- 0
- BR R10
- 0
- EJECT ,
- 0
- ----
- 0
- Just update YWAKEUP to ignore any "overflow" caused by adding the
- 0
- TIMEZONE-offset (which happens to be **minus** seven-hours in California),
- 0
- i.e., remove the "BC 12,*+8" and the "A R0,=F'1'" instructions,
- and you'll get the **right** answers!
-