Lines Matching full:year
225 // year boundary, SimpleTimeZone may return false result when DST is observed at the
226 // beginning of year. We could apply safe margin (day or two), but when one of recurrent
227 // rules falls around year boundary, it could return false result. Without setting the
228 // start year, finalZone works fine around the year boundary of the start year.
238 // small windows of time around the year boundary, this may
328 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month,
337 return getOffset(era, year, month, dom, dow, millis,
338 Grego::monthLength(year, month),
346 int32_t OlsonTimeZone::getOffset(uint8_t era, int32_t year, int32_t month,
370 year = -year;
373 if (finalZone != NULL && year >= finalStartYear) {
374 return finalZone->getOffset(era, year, month, dom, dow,
379 UDate date = (UDate)(Grego::fieldsToDay(year, month, dom) * U_MILLIS_PER_DAY + millis);
437 int32_t year, month, dom, dow;
441 Grego::dayToFields(days, year, month, dom, dow);
443 year, month+1, dom, (millis/kOneHour)));
556 // DST is in use in the current year (at any point in the year)
564 int32_t year, month, dom, dow, doy, mid;
565 Grego::timeToFields(current, year, month, dom, dow, doy, mid);
567 // Find start of this year, and start of next year
568 double start = Grego::fieldsToDay(year, 0, 1) * SECONDS_PER_DAY;
569 double limit = Grego::fieldsToDay(year+1, 0, 1) * SECONDS_PER_DAY;
572 // year.
796 * Note: When an OlsonTimeZone is constructed, we should set the final year
797 * as the start year of finalZone. However, the bounday condition used for
799 * For now, we do not set the valid start year when the construction time
800 * and create a clone and set the start year when extracting rules.