Home | History | Annotate | Download | only in i18n

Lines Matching refs:days

72  * Value to be added or subtracted from the local days of a new moon to
197 * Override Calendar method to return the number of days in the given
206 kEpochStartAsJulianDay + 1; // Julian day -> local days
231 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days
435 * Convert local days to UTC epoch milliseconds.
436 * @param days days after January 1, 1970 0:00 Asia/Shanghai
439 double ChineseCalendar::daysToMillis(double days) {
440 return (days * kOneDay) - CHINA_OFFSET;
444 * Convert UTC epoch milliseconds to local days.
446 * @return days after January 1, 1970 0:00 Asia/Shanghai
462 * @return days after January 1, 1970 0:00 Asia/Shanghai of the
499 * @param days days after January 1, 1970 0:00 Asia/Shanghai
502 * @return days after January 1, 1970 0:00 Asia/Shanghai of the nearest
503 * new moon after or before <code>days</code>
505 int32_t ChineseCalendar::newMoonNear(double days, UBool after) const {
512 gChineseCalendarAstro->setTime(daysToMillis(days));
522 * @param day1 days after January 1, 1970 0:00 Asia/Shanghai
523 * @param day2 days after January 1, 1970 0:00 Asia/Shanghai
535 * @param days days after January 1, 1970 0:00 Asia/Shanghai
537 int32_t ChineseCalendar::majorSolarTerm(int32_t days) const {
544 gChineseCalendarAstro->setTime(daysToMillis(days));
558 * @param newMoon days after January 1, 1970 0:00 Asia/Shanghai of a new
574 * @param newMoon1 days after January 1, 1970 0:00 Asia/Shanghai of a
576 * @param newMoon2 days after January 1, 1970 0:00 Asia/Shanghai of a
604 * @param days days after January 1, 1970 0:00 Asia/Shanghai of the
612 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth,
621 if (days < solsticeAfter) {
633 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month
659 int32_t dayOfMonth = days - thisMoon + 1;
671 // Days will be before the first new year we compute if this
676 if (days < theNewYear) {
679 internalSet(UCAL_DAY_OF_YEAR, days - theNewYear + 1);
691 * @return days after January 1, 1970 0:00 Asia/Shanghai of the
724 * position is given as a local days number for the start of the month
726 * @param newMoon the local days of the first day of the month of the
727 * start position (days after January 1, 1970 0:00 Asia/Shanghai)
744 // Pin the dom. In this calendar all months are 29 or 30 days