home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast.iso
/
pcmag
/
vol12n22.zip
/
D2JUL.ZIP
/
NDY
< prev
Wrap
Text File
|
1993-11-30
|
418b
|
10 lines
*****************************************************************
* FUNCTION ndy
* Returns a character string of length 3, left padded with zeros
* reflecting the number of the day of the year: 001-365 or 366.
*****************************************************************
FUNCTION ndy
PARAMETER d
boy = CTOD("01/01/"+LTRIM(STR(YEAR(IIF(EMPTY(d),DATE(),d)))))
RETURN PADL(LTRIM(STR((d - boy) + 1)),3,'0')