idlastro / Astronomical Utilities: DATE

[Source code]

NAME
DATE
PURPOSE
Convert day-of-year to a DD-MMM-YYYY string
CALLING SEQUENCE
D_String = DATE(Year, day )
INPUTS
Year - Integer scalar specifying the year.   If the year contains only
        two digits, then it is assumed to indicate the number of 
        years after 1900. 
Day - Integer scalar giving number of days after Jan 0 of the 
        specified year.    Can be larger than 366     
OUTPUTS
D_String - String giving date in format '13-MAR-1986'
RESTRICTIONS
Will not work for years before 100 AD 
EXAMPLE
IDL> print, date(1997,279)
        '6-Oct-1997'
MODIFICATION HISTORY
D.M. fecit  24 October,1983
 Work for years outside of the 19th century  W. Landsman  September 1997
 Converted to IDL V5.0   W. Landsman   September 1997