Home
last modified time | relevance | path

Searched refs:kOneDay (Results 1 – 6 of 6) sorted by relevance

/external/icu/icu4c/source/i18n/
Dgregoimp.h98 #define kOneDay (1.0 * U_MILLIS_PER_DAY) // 86,400,000 macro
103 #define kOneWeek (7.0 * kOneDay) // 604,800,000
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()
Ddangical.cpp108 …const UDate millis1897[] = { (UDate)((1897 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc()
109 …const UDate millis1898[] = { (UDate)((1898 - 1970) * 365 * kOneDay) }; // some days of error is no… in initDangiCalZoneAstroCalc()
110 …const UDate millis1912[] = { (UDate)((1912 - 1970) * 365 * kOneDay) }; // this doesn't create an i… in initDangiCalZoneAstroCalc()
Dgregocal.cpp335 int32_t cutoverDay = (int32_t)ClockMath::floorDivide(fGregorianCutover, (double)kOneDay); in setGregorianChange()
336 fNormalizedGregorianCutover = cutoverDay * kOneDay; in setGregorianChange()
346 fNormalizedGregorianCutover = (cutoverDay + 1) * kOneDay; in setGregorianChange()
702 return ClockMath::floorDivide(wallSec, kOneDay/1000.0); in getEpochDay()
790 return (double)kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay); in millisToJulianDay()
798 return (UDate) ((julian - kEpochStartAsJulianDay) * (double) kOneDay); in julianDayToMillis()
848 cMonthStart = t - ((cDayOfMonth - 1) * kOneDay); in roll()
851 (cMonthStart + (cMonthLen=(max-10))*kOneDay >= fGregorianCutover)) { in roll()
915 double monthLen = cMonthLen * kOneDay; in roll()
917 amount * kOneDay, monthLen); in roll()
[all …]
Dislamcal.cpp425 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay; in trueMonthStart()
436 origin -= kOneDay; in trueMonthStart()
446 origin += kOneDay; in trueMonthStart()
453 start = (int32_t)ClockMath::floorDivide((origin - HIJRA_MILLIS), (double)kOneDay) + 1; in trueMonthStart()
Dchnsecal.cpp484 double millis = days * (double)kOneDay; in daysToMillis()
507 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays()
510 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
Dcalendar.cpp1524 int32_t days = (int32_t)ClockMath::floorDivide(localMillis, (double)kOneDay); in computeFields()
1548 int32_t millisInDay = (int32_t) (localMillis - (days * kOneDay)); in computeFields()
2013 double delta = amount * kOneDay; // Scale up from days to millis in roll()
2015 min2 *= kOneDay; in roll()
2023 oneYear *= kOneDay; in roll()
2035 double delta = amount * kOneDay; // Scale up from days to millis in roll()
2041 double min2 = internalGetTime() - leadDays * kOneDay; in roll()
2173 delta *= kOneDay; in add()
2235 … adjAmount = adjAmount >= 0 ? adjAmount % (int32_t)kOneDay : -(-adjAmount % (int32_t)kOneDay); in add()