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.cpp333 double cutoverDay = ClockMath::floorDivide(date, (double)kOneDay); in setGregorianChange()
340 fGregorianCutover = fNormalizedGregorianCutover = cutoverDay * kOneDay; in setGregorianChange()
343 fGregorianCutover = fNormalizedGregorianCutover = cutoverDay * kOneDay; in setGregorianChange()
345 fNormalizedGregorianCutover = cutoverDay * 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()
[all …]
Dislamcal.cpp422 + uprv_floor(month * CalendarAstronomer::SYNODIC_MONTH) * kOneDay; in trueMonthStart()
433 origin -= kOneDay; in trueMonthStart()
443 origin += kOneDay; in trueMonthStart()
450 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.cpp1540 int32_t days = (int32_t)ClockMath::floorDivide(localMillis, (double)kOneDay); in computeFields()
1564 int32_t millisInDay = (int32_t) (localMillis - (days * kOneDay)); in computeFields()
2029 double delta = amount * kOneDay; // Scale up from days to millis in roll()
2031 min2 *= kOneDay; in roll()
2039 oneYear *= kOneDay; in roll()
2051 double delta = amount * kOneDay; // Scale up from days to millis in roll()
2057 double min2 = internalGetTime() - leadDays * kOneDay; in roll()
2189 delta *= kOneDay; in add()
2251 … adjAmount = adjAmount >= 0 ? adjAmount % (int32_t)kOneDay : -(-adjAmount % (int32_t)kOneDay); in add()