[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    cfht_julian(3) manual page Table of Contents

Name

cfht_julian - return a double that has the julian date

cfht_fromjulian - extract the date from the julian date

Synopsis


#include <cfht/cfht.h>double cfht_julian(year,month,day,hour,minute,sec)int
year;   /* e.g., 1990 */int month;  /* [1,12] */int day;    /* [1,31] */int
hour;   /* [0,23] */int minute; /* [0,59] */double sec; /* [0.0,59.9999999...]
*/
cfht_fromjulian(jd, year, month, day, hour, minute, sec)double jd;  
/* julian date */int *year;   /* e.g., 1990 */int *month;  /* [1,12] */int
*day;    /* [1,31] */int *hour;   /* [0,23] */int *minute; /* [0,59] */double
*sec; /* [0.0,59.9999999...] */
libcfht.a

Description

The julian date is the number of days past -4712 Jan 1 12:0:0.00 (UT).

Return Value

cfht_julian() returns a double that contains the julian date converted from the passed-in values. cfht_fromjulian() does not have a function return, but modifies the date components passed in as arguments.

See Also

cfht_date(3t)

Warnings

Julian date is defined relative to Universal Time; don’t use Hawaii Standard Time with these routines.


Table of Contents