Calendar/
jul2date.pro
gives yyyymmdd date equivalent of a Julian day
This is the inverse of the function date2jul.
jul2date
Calendar
result = jul2date(jday, MONTH=MONTH, DAY=DAY, YEAR=YEAR, HOUR=HOUR, MINUTE=MINUTE, SECOND=SECOND)
Return value
the date: longword integer with yyyymmdd format or double-precision
floating-point with yyyymmdd.xx where xx is the fraction of the day
(xx=0 at 0am and 5 at 12am)
Parameters
jday
in
required
type: long or double, scalar or array
Julian day
Keywords
MONTH
Set this keyword equal to a named variable that will receive a
longword integer or longword integer array representing the number of
the desired month (1 = January, ..., 12 = December).
DAY
Set this keyword equal to a named variable that will receive a
longword integer or longword integer array representing the number of
the day of the month (1-31).
YEAR
Set this keyword equal to a named variable that will receive a
longword integer or longword integer array representing the number of
the desired year (e.g., 1994).
HOUR
Set this keyword equal to a named variable that will receive a
longword integer or longword integer array representing the number of
the hour of the day (0-23).
MINUTE
Set this keyword equal to a named variable that will receive a
longword integer or longword integer array representing the number of
the minute of the hour (0-59).
SECOND
Set this keyword equal to a named variable that will receive a
double-precision floating-point value or a double-precision
floating-point array representing the number of the second of the
minute (0-59).
Examples
IDL> print, jul2date(julday(12,23,1999))
19991223
IDL> print, jul2date(julday(12,23,1999,12,0,0))
19991224.
IDL> print, jul2date(julday(12,23,1999,12,0,0)), format='(f11.2)'
19991223.50
IDL> print, jul2date(julday(12,23,1999,0,0,0)), format='(f11.2)'
19991223.00
Version history
Version
$Id: jul2date.pro 371 2008-08-07 09:32:02Z pinsard $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
June 2005
Known issues
Restrictions
Input param must be longword integer or double-precision floating-point
Produced by IDLdoc 2.0.