Home | History | Annotate | Download | only in i18n

Lines Matching refs:days

75  * Value to be added or subtracted from the local days of a new moon to
236 * Override Calendar method to return the number of days in the given
245 kEpochStartAsJulianDay + 1; // Julian day -> local days
270 computeChineseFields(julianDay - kEpochStartAsJulianDay, // local days
474 * Convert local days to UTC epoch milliseconds.
482 * @param days days after January 1, 1970 0:00 in the astronomical base zone
485 double ChineseCalendar::daysToMillis(double days) const {
486 double millis = days * (double)kOneDay;
499 * Convert UTC epoch milliseconds to local days.
501 * @return days after January 1, 1970 0:00 in the astronomical base zone
525 * @return days after January 1, 1970 0:00 Asia/Shanghai of the
562 * @param days days after January 1, 1970 0:00 Asia/Shanghai
565 * @return days after January 1, 1970 0:00 Asia/Shanghai of the nearest
566 * new moon after or before <code>days</code>
568 int32_t ChineseCalendar::newMoonNear(double days, UBool after) const {
575 gChineseCalendarAstro->setTime(daysToMillis(days));
585 * @param day1 days after January 1, 1970 0:00 Asia/Shanghai
586 * @param day2 days after January 1, 1970 0:00 Asia/Shanghai
598 * @param days days after January 1, 1970 0:00 Asia/Shanghai
600 int32_t ChineseCalendar::majorSolarTerm(int32_t days) const {
607 gChineseCalendarAstro->setTime(daysToMillis(days));
621 * @param newMoon days after January 1, 1970 0:00 Asia/Shanghai of a new
637 * @param newMoon1 days after January 1, 1970 0:00 astronomical base zone
639 * @param newMoon2 days after January 1, 1970 0:00 astronomical base zone
667 * @param days days after January 1, 1970 0:00 astronomical base zone
675 void ChineseCalendar::computeChineseFields(int32_t days, int32_t gyear, int32_t gmonth,
684 if (days < solsticeAfter) {
696 int32_t thisMoon = newMoonNear(days + 1, FALSE); // Start of this month
726 int32_t dayOfMonth = days - thisMoon + 1;
738 // Days will be before the first new year we compute if this
743 if (days < theNewYear) {
746 internalSet(UCAL_DAY_OF_YEAR, days - theNewYear + 1);
758 * @return days after January 1, 1970 0:00 astronomical base zone of the
791 * position is given as a local days number for the start of the month
793 * @param newMoon the local days of the first day of the month of the
794 * start position (days after January 1, 1970 0:00 Asia/Shanghai)
811 // Pin the dom. In this calendar all months are 29 or 30 days