Home | History | Annotate | Download | only in timezone

Lines Matching refs:rbtz

64         // RBTZ
206 * Test equivalency between OlsonTimeZone and custom RBTZ representing the
210 // Compare to America/New_York with equivalent RBTZ
213 //RBTZ
215 RuleBasedTimeZone rbtz = new RuleBasedTimeZone("EST5EDT", ir);
224 rbtz.addTransitionRule(tzr);
229 rbtz.addTransitionRule(tzr);
235 rbtz.addTransitionRule(tzr);
240 rbtz.addTransitionRule(tzr);
245 rbtz.addTransitionRule(tzr);
250 rbtz.addTransitionRule(tzr);
255 rbtz.addTransitionRule(tzr);
260 rbtz.addTransitionRule(tzr);
267 if (!(((BasicTimeZone)ny).hasEquivalentTransitions(rbtz, jan1_1967, jan1_2010))) {
268 errln("FAIL: The RBTZ must be equivalent to America/New_York between 1967 and 2010");
270 if (((BasicTimeZone)ny).hasEquivalentTransitions(rbtz, jan1_1950, jan1_2010)) {
271 errln("FAIL: The RBTZ must not be equivalent to America/New_York between 1950 and 2010");
274 // Same with above, but calling RBTZ#hasEquivalentTransitions against OlsonTimeZone
275 if (!rbtz.hasEquivalentTransitions(ny, jan1_1967, jan1_2010)) {
276 errln("FAIL: The RBTZ must be equivalent to America/New_York between 1967 and 2010");
278 if (rbtz.hasEquivalentTransitions(ny, jan1_1950, jan1_2010)) {
279 errln("FAIL: The RBTZ must not be equivalent to America/New_York between 1950 and 2010");
283 if (ny.hasSameRules(rbtz) || rbtz.hasSameRules(ny)) {
286 RuleBasedTimeZone rbtzc = (RuleBasedTimeZone)rbtz.clone();
287 if (!rbtz.hasSameRules(rbtzc) || !rbtz.hasEquivalentTransitions(rbtzc, jan1_1950, jan1_2010)) {
304 rbtz.getOffset(times[i], false, offsets1);
307 errln("FAIL: Incompatible time zone offsets for ny and rbtz");
311 if (rbtz.inDaylightTime(d) != ny.inDaylightTime(d)) {
312 errln("FAIL: Incompatible daylight saving time for ny and rbtz");
340 * Check if an OlsonTimeZone and its equivalent RBTZ have the exact same
360 RuleBasedTimeZone rbtz = new RuleBasedTimeZone(tz.getID() + "(RBTZ)",
363 rbtz.addTransitionRule(rules[k]);
366 // Compare the original OlsonTimeZone with the RBTZ starting the startTime for 20 years
370 compareTransitionsAscending(tz, rbtz, startTime, until, false);
372 compareTransitionsAscending(tz, rbtz, startTime + 1, until, true);
374 rbtz, startTime, until, false);
376 compareTransitionsDescending(tz, rbtz, startTime + 1, until, true);
1800 RuleBasedTimeZone rbtz = new RuleBasedTimeZone(id, initialRule);
1804 rbtz.addTransitionRule(atzRule);
1808 rbtz.addTransitionRule(atzRule);
1812 rbtz.addTransitionRule(atzRule);
1816 rbtz.addTransitionRule(atzRule);
1821 rbtz.getOffset(1293822000000L /* 2010-12-31 19:00:00 UTC */, false, offsets);