home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a012 / 1.ddi / CHAP21.EXE / CHP2114.PRG < prev    next >
Encoding:
Text File  |  1991-04-30  |  532 b   |  19 lines

  1. /*
  2.    Listing 21.14  Djul()
  3.    Author: Joe Booth
  4.    Excerpted from "Clipper 5: A Developer's Guide"
  5.    Copyright (c) 1991 M&T Books
  6.                       501 Galveston Drive
  7.                       Redwood City, CA 94063-4728
  8.                       (415) 366-3600
  9. */
  10.  
  11. //───── NOTE: must compile with the /N option!
  12.  
  13. function Djul(nJulian)
  14. LOCAL yy := year( date())
  15. LOCAL temp:=ctod("01/01/"+yy)    // Build January first of year
  16. return (temp+nJulian)            // Add julian days back in
  17.  
  18. // end of file CHP2114.PRG
  19.