Searched refs:kEpochStartAsJulianDay (Results 1 – 5 of 5) sorted by relevance
/external/icu/icu4c/source/i18n/ |
D | gregoimp.h | 108 #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()
|
D | chnsecal.cpp | 243 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()
|
D | gregocal.cpp | 149 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()
|
D | calendar.cpp | 1526 internalSet(UCAL_JULIAN_DAY,days + kEpochStartAsJulianDay); in computeFields() 1605 …Grego::dayToFields(julianDay - kEpochStartAsJulianDay, fGregorianYear, fGregorianMonth, fGregorian… in computeGregorianFields()
|
/external/icu/icu4c/source/test/intltest/ |
D | caltest.cpp | 2077 static const int32_t kEpochStartAsJulianDay = 2440588; in TestJD() local 2084 if(jd != kEpochStartAsJulianDay) { in TestJD() 2085 errln("Wanted JD of %d at time=0, [epoch 1970] but got %d\n", kEpochStartAsJulianDay, jd); in TestJD() 2087 logln("Wanted JD of %d at time=0, [epoch 1970], got %d\n", kEpochStartAsJulianDay, jd); in TestJD() 2092 cal.set(UCAL_JULIAN_DAY, kEpochStartAsJulianDay); in TestJD() 2095 errln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD() 2097 logln("Wanted time of 0 at jd=%d, got %.1lf\n", kEpochStartAsJulianDay, epochTime); in TestJD()
|