Home
last modified time | relevance | path

Searched refs:kEpochStartAsJulianDay (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4c/source/i18n/
Dgregoimp.h95 #define kEpochStartAsJulianDay 2440588 // January 1, 1970 (Gregorian) macro
114 #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
126 #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
281 return (julian - kEpochStartAsJulianDay) * kOneDay; in julianDayToMillis()
285 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
Dchnsecal.cpp241 kEpochStartAsJulianDay + 1; // Julian day -> local days in handleGetMonthLength()
266 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields()
337 int32_t julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart()
358 julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart()
378 int32_t day = get(UCAL_JULIAN_DAY, status) - kEpochStartAsJulianDay; // Get local day in add()
408 int32_t day = get(UCAL_JULIAN_DAY, status) - kEpochStartAsJulianDay; // Get local day in roll()
805 int32_t jd = newMoon + kEpochStartAsJulianDay - 1 + dom; in offsetMonth()
Dgregocal.cpp147 static const UDate kPapalCutover = (2299161.0 - kEpochStartAsJulianDay) * U_MILLIS_PER_DAY;
788 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); in millisToJulianDay()
796 return (UDate) ((julian - kEpochStartAsJulianDay) * (double) kOneDay); in julianDayToMillis()
Dcalendar.cpp1517 internalSet(UCAL_JULIAN_DAY,days + kEpochStartAsJulianDay); in computeFields()
1596 …Grego::dayToFields(julianDay - kEpochStartAsJulianDay, fGregorianYear, fGregorianMonth, fGregorian… in computeGregorianFields()
/external/icu/icu4c/source/test/intltest/
Dcaltest.cpp2068 static const int32_t kEpochStartAsJulianDay = 2440588; in TestJD() local
2075 if(jd != kEpochStartAsJulianDay) { in TestJD()
2076 errln("Wanted JD of %d at time=0, [epoch 1970] but got %d\n", kEpochStartAsJulianDay, jd); in TestJD()
2078 logln("Wanted JD of %d at time=0, [epoch 1970], got %d\n", kEpochStartAsJulianDay, jd); in TestJD()
2083 cal.set(UCAL_JULIAN_DAY, kEpochStartAsJulianDay); in TestJD()
2086 errln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD()
2088 logln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD()