home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / vms / 20811 < prev    next >
Encoding:
Text File  |  1993-01-12  |  1.3 KB  |  32 lines

  1. Newsgroups: comp.os.vms
  2. Path: sparky!uunet!psinntp!vitro.com!v7.vitro.com!vaxs09
  3. From: vaxs09@v7.vitro.com
  4. Subject: Re: Implimenting "TOMORROW +1: 0:0" from an .EXE
  5. Message-ID: <1993Jan12.130945.1@v7.vitro.com>
  6. Lines: 20
  7. Sender: news@vitro.com (USENET News System)
  8. Organization: Vitro Corporation
  9. References: <1993Jan11.153438.28624@magnus.acs.ohio-state.edu> <11JAN199319201213@spades.aces.com>
  10. Date: Tue, 12 Jan 1993 18:09:45 GMT
  11.  
  12. >     1. Call SYS$GETTIM to get current time in ticks (10ns units)
  13. >     2. Add 144,000,000 to this number 
  14. >        24 hrs x 60 min  x 60 sec  x 100000 ns    144,000,000 ns/day
  15. >                  -----     -----         ---- =
  16. >                hr        min          sec
  17. You dropped a factor of 60 and a factor of 100 there.  It's actually
  18. 864 billion clunks/day.  The units are also wrong.  It's clunks/day,
  19. not ns/day.  If the questioner has trouble converting this figure to
  20. a quadword, SYS$BINTIM ( '1 ', quadword ) will give the twos complement.
  21. Other approaches include LIB$EMUL, pencil and paper, a good calculator
  22. or a language that supports 64 bit arithmetic.
  23.  
  24. I get a low order longword of 711573504 and a high order longword of 201.
  25.  
  26. >     (I may be off on the number in #2 but it looks right.  I'm
  27. >      sure someone will rush to correct me if it isn't.)
  28.  
  29. I'm just the fool to rush in.  :-)
  30.  
  31.     John Briggs            vaxs09@v7.vitro.com
  32.