Home
last modified time | relevance | path

Searched refs:endYear (Results 1 – 21 of 21) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DAnnualTimeZoneRule.java34 private final int endYear; field in AnnualTimeZoneRule
54 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() argument
58 this.endYear = endYear; in AnnualTimeZoneRule()
94 return endYear; in getEndYear()
112 if (year < startYear || year > endYear) { in getStartInYear()
182 if (endYear == MAX_YEAR) { in getFinalStart()
185 return getStartInYear(endYear, prevRawOffset, prevDSTSavings); in getFinalStart()
214 if (year > endYear) { in getPreviousStart()
235 && endYear == otherRule.endYear in isEquivalentTo()
266 if (endYear == MAX_YEAR) { in toString()
[all …]
DSimpleHoliday.java82 int startYear, int endYear) in SimpleHoliday() argument
84 super(name, rangeRule(startYear, endYear, new SimpleDateRule(month, dayOfMonth))); in SimpleHoliday()
138 int startYear, int endYear) in SimpleHoliday() argument
140 super(name, rangeRule(startYear, endYear, in SimpleHoliday()
146 private static DateRule rangeRule(int startYear, int endYear, DateRule rule) in rangeRule() argument
148 if (startYear == 0 && endYear == 0) { in rangeRule()
160 if (endYear != 0) { in rangeRule()
161 Date end = new GregorianCalendar(endYear, Calendar.DECEMBER, 31).getTime(); in rangeRule()
DVTimeZone.java1025 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
1028 endYear = dfields[0]; in createRuleByRRULE()
1048 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DAnnualTimeZoneRule.java36 private final int endYear; field in AnnualTimeZoneRule
54 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() argument
58 this.endYear = endYear; in AnnualTimeZoneRule()
90 return endYear; in getEndYear()
106 if (year < startYear || year > endYear) { in getStartInYear()
174 if (endYear == MAX_YEAR) { in getFinalStart()
177 return getStartInYear(endYear, prevRawOffset, prevDSTSavings); in getFinalStart()
204 if (year > endYear) { in getPreviousStart()
224 && endYear == otherRule.endYear in isEquivalentTo()
252 if (endYear == MAX_YEAR) { in toString()
[all …]
DSimpleHoliday.java80 int startYear, int endYear) in SimpleHoliday() argument
82 super(name, rangeRule(startYear, endYear, new SimpleDateRule(month, dayOfMonth))); in SimpleHoliday()
133 int startYear, int endYear) in SimpleHoliday() argument
135 super(name, rangeRule(startYear, endYear, in SimpleHoliday()
141 private static DateRule rangeRule(int startYear, int endYear, DateRule rule) in rangeRule() argument
143 if (startYear == 0 && endYear == 0) { in rangeRule()
155 if (endYear != 0) { in rangeRule()
156 Date end = new GregorianCalendar(endYear, Calendar.DECEMBER, 31).getTime(); in rangeRule()
DVTimeZone.java994 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
997 endYear = dfields[0]; in createRuleByRRULE()
1017 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DEthiopicTest.java444 private int endYear; in TestAddSet() field in EthiopicTest.TestAddSetItem
453 endYear = eYr; in TestAddSet()
462 public int getEndYear() { return endYear; } in TestAddSet()
482 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
485 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
488 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
DCopticTest.java387 private int endYear; in TestAddSet() field in CopticTest.TestAddSetItem
396 endYear = eYr; in TestAddSet()
405 public int getEndYear() { return endYear; } in TestAddSet()
425 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
428 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
431 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEthiopicTest.java441 private int endYear; in TestAddSet() field in EthiopicTest.TestAddSetItem
450 endYear = eYr; in TestAddSet()
459 public int getEndYear() { return endYear; } in TestAddSet()
479 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
482 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
485 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
DCopticTest.java384 private int endYear; in TestAddSet() field in CopticTest.TestAddSetItem
393 endYear = eYr; in TestAddSet()
402 public int getEndYear() { return endYear; } in TestAddSet()
422 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
425 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
428 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timezone/
DBasicTimeZoneExample.java121 int endYear = startYear + 9; in equivalentTransitionsExample() local
122 cal.set(endYear + 1, Calendar.JANUARY, 1, 0, 0, 0); in equivalentTransitionsExample()
127 System.out.println(startYear + "-" + endYear + ": " + isEquivalent); in equivalentTransitionsExample()
/external/cldr/tools/java/org/unicode/cldr/util/
DZoneParser.java506 void addTransitions(ZoneLine lastZoneLine, ZoneLine zoneLine, int startYear, int endYear) { in addTransitions() argument
512 endYear = Math.min(endYear, zoneLine.untilYear); in addTransitions()
514 for (int year = startYear; year <= endYear; ++year) { in addTransitions()
525 public TransitionList getTransitions(String zoneID, int startYear, int endYear) { in getTransitions() argument
530 results.addTransitions(lastZoneLine, zoneLine, startYear, endYear); in getTransitions()
/external/icu/icu4c/source/i18n/
Dtzrule.cpp188 int32_t endYear) in AnnualTimeZoneRule() argument
190 fStartYear(startYear), fEndYear(endYear) { in AnnualTimeZoneRule()
198 int32_t endYear) in AnnualTimeZoneRule() argument
200 fStartYear(startYear), fEndYear(endYear) { in AnnualTimeZoneRule()
Dvtzone.cpp696 int32_t endYear; in createRuleByRRULE() local
699 Grego::timeToFields(until, endYear, endMonth, endDOM, endDOW, endDOY, endMID); in createRuleByRRULE()
701 endYear = AnnualTimeZoneRule::MAX_YEAR; in createRuleByRRULE()
719 return new AnnualTimeZoneRule(zonename, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/icu4c/source/i18n/unicode/
Dtzrule.h405 const DateTimeRule& dateTimeRule, int32_t startYear, int32_t endYear);
424 DateTimeRule* dateTimeRule, int32_t startYear, int32_t endYear);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java824 int endYear = a1.getEndYear(); in TestTimeZoneRuleCoverage() local
825 if (endYear != AnnualTimeZoneRule.MAX_YEAR) { in TestTimeZoneRuleCoverage()
826 … errln("FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
828 endYear = a3.getEndYear(); in TestTimeZoneRuleCoverage()
829 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
830 … errln("FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear); in TestTimeZoneRuleCoverage()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneRuleTest.java827 int endYear = a1.getEndYear(); in TestTimeZoneRuleCoverage() local
828 if (endYear != AnnualTimeZoneRule.MAX_YEAR) { in TestTimeZoneRuleCoverage()
829 … errln("FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
831 endYear = a3.getEndYear(); in TestTimeZoneRuleCoverage()
832 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
833 … errln("FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear); in TestTimeZoneRuleCoverage()
/external/icu/icu4c/source/test/intltest/
Dtzrulets.cpp1282 int32_t endYear = a1->getEndYear(); in TestTimeZoneRuleCoverage() local
1283 if (endYear != AnnualTimeZoneRule::MAX_YEAR) { in TestTimeZoneRuleCoverage()
1284 …odeString)"FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
1286 endYear = a3->getEndYear(); in TestTimeZoneRuleCoverage()
1287 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
1288 …UnicodeString)"FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear); in TestTimeZoneRuleCoverage()
Dcalregts.cpp2444 int32_t endYear; member
2497 int32_t endYear = testItemPtr->endYear + testLocalePtr->yearOffset; in TestT6745() local
2501 …if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr-… in TestT6745()
2504 … ", expected " + endYear + "/" + testItemPtr->endMonth + "/" + testItemPtr->endDay + in TestT6745()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeZoneFormatTest.java316 int startYear, endYear; in TestTimeRoundTrip() local
325 endYear = cal.get(Calendar.YEAR) + 3; in TestTimeRoundTrip()
330 cal.set(endYear, Calendar.JANUARY, 1); in TestTimeRoundTrip()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java313 int startYear, endYear; in TestTimeRoundTrip() local
322 endYear = cal.get(Calendar.YEAR) + 3; in TestTimeRoundTrip()
327 cal.set(endYear, Calendar.JANUARY, 1); in TestTimeRoundTrip()