Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/util/
DAnnualTimeZoneRule.java32 private final int endYear; field in AnnualTimeZoneRule
50 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() argument
54 this.endYear = endYear > MAX_YEAR ? MAX_YEAR : endYear; in AnnualTimeZoneRule()
84 return endYear; in getEndYear()
100 if (year < startYear || year > endYear) { in getStartInYear()
166 if (endYear == MAX_YEAR) { in getFinalStart()
169 return getStartInYear(endYear, prevRawOffset, prevDSTSavings); in getFinalStart()
194 if (year > endYear) { in getPreviousStart()
213 && endYear == otherRule.endYear in isEquivalentTo()
239 if (endYear == MAX_YEAR) { in toString()
[all …]
DSimpleHoliday.java78 int startYear, int endYear) in SimpleHoliday() argument
80 super(name, rangeRule(startYear, endYear, new SimpleDateRule(month, dayOfMonth))); in SimpleHoliday()
131 int startYear, int endYear) in SimpleHoliday() argument
133 super(name, rangeRule(startYear, endYear, in SimpleHoliday()
139 private static DateRule rangeRule(int startYear, int endYear, DateRule rule) in rangeRule() argument
141 if (startYear == 0 && endYear == 0) { in rangeRule()
153 if (endYear != 0) { in rangeRule()
154 Date end = new GregorianCalendar(endYear, Calendar.DECEMBER, 31).getTime(); in rangeRule()
DVTimeZone.java988 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
991 endYear = dfields[0]; in createRuleByRRULE()
1011 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DAnnualTimeZoneRule.java32 private final int endYear; field in AnnualTimeZoneRule
52 DateTimeRule dateTimeRule, int startYear, int endYear) { in AnnualTimeZoneRule() argument
56 this.endYear = endYear > MAX_YEAR ? MAX_YEAR : endYear; in AnnualTimeZoneRule()
92 return endYear; in getEndYear()
110 if (year < startYear || year > endYear) { in getStartInYear()
178 if (endYear == MAX_YEAR) { in getFinalStart()
181 return getStartInYear(endYear, prevRawOffset, prevDSTSavings); in getFinalStart()
208 if (year > endYear) { in getPreviousStart()
228 && endYear == otherRule.endYear in isEquivalentTo()
257 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()
136 int startYear, int endYear) in SimpleHoliday() argument
138 super(name, rangeRule(startYear, endYear, in SimpleHoliday()
144 private static DateRule rangeRule(int startYear, int endYear, DateRule rule) in rangeRule() argument
146 if (startYear == 0 && endYear == 0) { in rangeRule()
158 if (endYear != 0) { in rangeRule()
159 Date end = new GregorianCalendar(endYear, Calendar.DECEMBER, 31).getTime(); in rangeRule()
DVTimeZone.java1019 int endYear = AnnualTimeZoneRule.MAX_YEAR; in createRuleByRRULE()
1022 endYear = dfields[0]; in createRuleByRRULE()
1042 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DEthiopicTest.java430 private int endYear; in TestAddSet() field in EthiopicTest.TestAddSetItem
439 endYear = eYr; in TestAddSet()
448 public int getEndYear() { return endYear; } in TestAddSet()
468 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
471 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
474 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
DCopticTest.java372 private int endYear; in TestAddSet() field in CopticTest.TestAddSetItem
381 endYear = eYr; in TestAddSet()
390 public int getEndYear() { return endYear; } in TestAddSet()
410 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
413 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
416 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DCopticTest.java376 private int endYear; in TestAddSet() field in CopticTest.TestAddSetItem
385 endYear = eYr; in TestAddSet()
394 public int getEndYear() { return endYear; } in TestAddSet()
414 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
417 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
420 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
DEthiopicTest.java434 private int endYear; in TestAddSet() field in EthiopicTest.TestAddSetItem
443 endYear = eYr; in TestAddSet()
452 public int getEndYear() { return endYear; } in TestAddSet()
472 int endYear = testCalendar.get(Calendar.YEAR); in TestAddSet() local
475 …if ( endYear != item.getEndYear() || endMonth != item.getEndMonth() || endDay != item.getEndDay() … in TestAddSet()
478 " got yr " + endYear + " mo " + endMonth + " da " + endDay); in TestAddSet()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timezone/
DBasicTimeZoneExample.java119 int endYear = startYear + 9; in equivalentTransitionsExample() local
120 cal.set(endYear + 1, Calendar.JANUARY, 1, 0, 0, 0); in equivalentTransitionsExample()
125 System.out.println(startYear + "-" + endYear + ": " + isEquivalent); in equivalentTransitionsExample()
/external/icu/icu4c/source/i18n/
Dtzrule.cpp186 int32_t endYear) in AnnualTimeZoneRule() argument
188 fStartYear(startYear), fEndYear(endYear) { in AnnualTimeZoneRule()
196 int32_t endYear) in AnnualTimeZoneRule() argument
198 fStartYear(startYear), fEndYear(endYear) { in AnnualTimeZoneRule()
Dvtzone.cpp694 int32_t endYear; in createRuleByRRULE() local
697 Grego::timeToFields(until, endYear, endMonth, endDOM, endDOW, endDOY, endMID); in createRuleByRRULE()
699 endYear = AnnualTimeZoneRule::MAX_YEAR; in createRuleByRRULE()
717 return new AnnualTimeZoneRule(zonename, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE()
/external/icu/icu4c/source/i18n/unicode/
Dtzrule.h401 const DateTimeRule& dateTimeRule, int32_t startYear, int32_t endYear);
420 DateTimeRule* dateTimeRule, int32_t startYear, int32_t endYear);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneRuleTest.java810 int endYear = a1.getEndYear(); in TestTimeZoneRuleCoverage() local
811 if (endYear != AnnualTimeZoneRule.MAX_YEAR) { in TestTimeZoneRuleCoverage()
812 … errln("FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
814 endYear = a3.getEndYear(); in TestTimeZoneRuleCoverage()
815 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
816 … 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.java814 int endYear = a1.getEndYear(); in TestTimeZoneRuleCoverage() local
815 if (endYear != AnnualTimeZoneRule.MAX_YEAR) { in TestTimeZoneRuleCoverage()
816 … errln("FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
818 endYear = a3.getEndYear(); in TestTimeZoneRuleCoverage()
819 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
820 … errln("FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear); in TestTimeZoneRuleCoverage()
/external/icu/icu4c/source/test/intltest/
Dtzrulets.cpp1279 int32_t endYear = a1->getEndYear(); in TestTimeZoneRuleCoverage() local
1280 if (endYear != AnnualTimeZoneRule::MAX_YEAR) { in TestTimeZoneRuleCoverage()
1281 …odeString)"FAIL: The start year of AnnualTimeZoneRule a1 must be MAX_YEAR - returned: " + endYear); in TestTimeZoneRuleCoverage()
1283 endYear = a3->getEndYear(); in TestTimeZoneRuleCoverage()
1284 if (endYear != 2010) { in TestTimeZoneRuleCoverage()
1285 …UnicodeString)"FAIL: The start year of AnnualTimeZoneRule a3 must be 2010 - returned: " + endYear); in TestTimeZoneRuleCoverage()
Dcalregts.cpp2404 int32_t endYear; member
2457 int32_t endYear = testItemPtr->endYear + testLocalePtr->yearOffset; in TestT6745() local
2461 …if ( U_FAILURE(status) || year != endYear || month != testItemPtr->endMonth || day != testItemPtr-… in TestT6745()
2464 … ", expected " + endYear + "/" + testItemPtr->endMonth + "/" + testItemPtr->endDay + in TestT6745()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeZoneFormatTest.java300 int startYear, endYear; in TestTimeRoundTrip() local
309 endYear = cal.get(Calendar.YEAR) + 3; in TestTimeRoundTrip()
314 cal.set(endYear, Calendar.JANUARY, 1); in TestTimeRoundTrip()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeZoneFormatTest.java304 int startYear, endYear; in TestTimeRoundTrip() local
313 endYear = cal.get(Calendar.YEAR) + 3; in TestTimeRoundTrip()
318 cal.set(endYear, Calendar.JANUARY, 1); in TestTimeRoundTrip()