public static double getJulianDayNumber ( Calendar time ) { if ( time == null ) { time = GregorianCalendar . getInstance ( TimeZone . getTimeZone ( "GMT" ) ) ; } double jd = BASE_JD + time . getTimeInMillis ( ) / MILLISEC_PER_DAY ; return jd ; }
Calculate the Julian day number corresponding to the time provided