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

  1. /*
  2.    Listing 21.13  Juld()
  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. function Juld(dVar)
  12. LOCAL yy:=str(year(dVar),4)      // Determine year
  13. LOCAL temp:=ctod("01/01/"+yy)    // Build January first of year
  14. return (dVar-temp)               // Subtract to return # of days
  15.  
  16. // end of file CHP2113.PRG
  17.