home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / informix / 2883 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  704 b 

  1. From: ecg00@hplvec.LVLD.HP.COM (Ed Gulczynski)
  2. Date: Wed, 6 Jan 1993 21:43:48 GMT
  3. Subject: 4GL date routine, HOW?
  4. Message-ID: <34450001@hplvec.LVLD.HP.COM>
  5. Organization: Hewlett-Packard Co., Loveland, CO
  6. Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hplvec!ecg00
  7. Newsgroups: comp.databases.informix
  8. Lines: 18
  9.  
  10. In 4gl I'm trying to calc. the number of days between 2 dates 
  11. Here's what I've done.  This doesn't work at all????
  12. I'd appreciate it if you could send me some working code that would 
  13. yield p_diff as a valid integer value.
  14.  
  15.  
  16. .
  17. .
  18. GLOBALS
  19.     p_diff      INTEGER
  20. END GLOBALS
  21. .
  22. .
  23.  
  24. LET p_diff  = TODAY - 60 UNITS DAY
  25.     DISPLAY "diff=",
  26.             p_diff         
  27.  
  28.