Home
last modified time | relevance | path

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

/external/icu/libicu/cts_headers/
Dgregoimp.h108 #define kEpochStartAsJulianDay 2440588 // January 1, 1970 (Gregorian) macro
127 #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
139 #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
294 return (julian - kEpochStartAsJulianDay) * kOneDay; in julianDayToMillis()
298 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
/external/icu/icu4c/source/i18n/
Dgregoimp.h108 #define kEpochStartAsJulianDay 2440588 // January 1, 1970 (Gregorian) macro
127 #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
139 #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
294 return (julian - kEpochStartAsJulianDay) * kOneDay; in julianDayToMillis()
298 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
Dchnsecal.cpp243 kEpochStartAsJulianDay + 1; // Julian day -> local days in handleGetMonthLength()
268 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days in handleComputeFields()
339 int32_t julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart()
360 julianDay = newMoon + kEpochStartAsJulianDay; in handleComputeMonthStart()
380 int32_t day = get(UCAL_JULIAN_DAY, status) - kEpochStartAsJulianDay; // Get local day in add()
410 int32_t day = get(UCAL_JULIAN_DAY, status) - kEpochStartAsJulianDay; // Get local day in roll()
807 int32_t jd = newMoon + kEpochStartAsJulianDay - 1 + dom; in offsetMonth()
Dindiancal.cpp143 return Grego::fieldsToDay(year, month, date) + kEpochStartAsJulianDay - 0.5; in gregorianToJD()
153 Grego::dayToFields(jd - kEpochStartAsJulianDay, in jdToGregorian()
Dgregocal.cpp149 static const UDate kPapalCutover = (2299161.0 - kEpochStartAsJulianDay) * U_MILLIS_PER_DAY;
790 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); in millisToJulianDay()
798 return (UDate) ((julian - kEpochStartAsJulianDay) * (double) kOneDay); in julianDayToMillis()
Dcalendar.cpp1542 internalSet(UCAL_JULIAN_DAY,days + kEpochStartAsJulianDay); in computeFields()
1621 …Grego::dayToFields(julianDay - kEpochStartAsJulianDay, fGregorianYear, fGregorianMonth, fGregorian… in computeGregorianFields()
/external/icu/icu4c/source/test/intltest/
Dcaltest.cpp2099 static const int32_t kEpochStartAsJulianDay = 2440588; in TestJD() local
2106 if(jd != kEpochStartAsJulianDay) { in TestJD()
2107 errln("Wanted JD of %d at time=0, [epoch 1970] but got %d\n", kEpochStartAsJulianDay, jd); in TestJD()
2109 logln("Wanted JD of %d at time=0, [epoch 1970], got %d\n", kEpochStartAsJulianDay, jd); in TestJD()
2114 cal.set(UCAL_JULIAN_DAY, kEpochStartAsJulianDay); in TestJD()
2117 errln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD()
2119 logln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD()