Lines Matching refs:DateTimeRule
160 DateTimeRule *dtr; in TestSimpleRuleBasedTimeZone()
171 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, FALSE, in TestSimpleRuleBasedTimeZone()
172 1*HOUR, DateTimeRule::WALL_TIME); // SUN<=30 in September, at 1AM wall time in TestSimpleRuleBasedTimeZone()
180 dtr = new DateTimeRule(UCAL_FEBRUARY, 2, UCAL_SUNDAY, in TestSimpleRuleBasedTimeZone()
181 1*HOUR, DateTimeRule::WALL_TIME); // 2nd Sunday in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
196 dtr = new DateTimeRule(UCAL_SEPTEMBER, -1, UCAL_SATURDAY, in TestSimpleRuleBasedTimeZone()
197 1*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in September at 1AM wall time in TestSimpleRuleBasedTimeZone()
203 dtr = new DateTimeRule(UCAL_FEBRUARY, 8, UCAL_SUNDAY, true, in TestSimpleRuleBasedTimeZone()
204 1*HOUR, DateTimeRule::WALL_TIME); // SUN>=8 in February, at 1AM wall time in TestSimpleRuleBasedTimeZone()
217 dtr = new DateTimeRule(UCAL_SEPTEMBER, 30, UCAL_SATURDAY, false, in TestSimpleRuleBasedTimeZone()
218 2*HOUR, DateTimeRule::UTC_TIME); in TestSimpleRuleBasedTimeZone()
224 dtr = new DateTimeRule(UCAL_FEBRUARY, 2, UCAL_SUNDAY, in TestSimpleRuleBasedTimeZone()
225 0*HOUR, DateTimeRule::STANDARD_TIME); in TestSimpleRuleBasedTimeZone()
397 dtr = new DateTimeRule(UCAL_OCTOBER, 15, 1*HOUR, DateTimeRule::WALL_TIME); in TestSimpleRuleBasedTimeZone()
438 DateTimeRule *dtr; in TestHistoricalRuleBasedTimeZone()
442 dtr = new DateTimeRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
443 2*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in October, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
450 dtr = new DateTimeRule(UCAL_NOVEMBER, 1, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
451 true, 2*HOUR, DateTimeRule::WALL_TIME); // SUN>=1 in November, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
459 dtr = new DateTimeRule(UCAL_APRIL, -1, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
460 2*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in April, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
467 dtr = new DateTimeRule(UCAL_JANUARY, 6, in TestHistoricalRuleBasedTimeZone()
468 2*HOUR, DateTimeRule::WALL_TIME); // January 6, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
475 dtr = new DateTimeRule(UCAL_FEBRUARY, 23, in TestHistoricalRuleBasedTimeZone()
476 2*HOUR, DateTimeRule::WALL_TIME); // February 23, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
483 dtr = new DateTimeRule(UCAL_APRIL, -1, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
484 2*HOUR, DateTimeRule::WALL_TIME); // Last Sunday in April, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
491 dtr = new DateTimeRule(UCAL_APRIL, 1, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
492 true, 2*HOUR, DateTimeRule::WALL_TIME); // SUN>=1 in April, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
499 dtr = new DateTimeRule(UCAL_MARCH, 8, UCAL_SUNDAY, in TestHistoricalRuleBasedTimeZone()
500 true, 2*HOUR, DateTimeRule::WALL_TIME); // SUN>=8 in March, at 2AM wall time in TestHistoricalRuleBasedTimeZone()
1145 const DateTimeRule *dtr = std->getRule(); in TestGetSimpleRules()
1146 if (dtr->getDateRuleType() != DateTimeRule::DOW) { in TestGetSimpleRules()
1150 if (dtr->getTimeRuleType() != DateTimeRule::WALL_TIME) { in TestGetSimpleRules()
1155 if (dtr->getDateRuleType() != DateTimeRule::DOW) { in TestGetSimpleRules()
1159 if (dtr->getTimeRuleType() != DateTimeRule::WALL_TIME) { in TestGetSimpleRules()
1208 DateTimeRule *dtr1 = new DateTimeRule(UCAL_FEBRUARY, 29, UCAL_SUNDAY, FALSE, in TestTimeZoneRuleCoverage()
1209 3*HOUR, DateTimeRule::WALL_TIME); // Last Sunday on or before Feb 29, at 3 AM, wall time in TestTimeZoneRuleCoverage()
1210 DateTimeRule *dtr2 = new DateTimeRule(UCAL_MARCH, 11, 2*HOUR, in TestTimeZoneRuleCoverage()
1211 DateTimeRule::STANDARD_TIME); // Mar 11, at 2 AM, standard time in TestTimeZoneRuleCoverage()
1212 DateTimeRule *dtr3 = new DateTimeRule(UCAL_OCTOBER, -1, UCAL_SATURDAY, in TestTimeZoneRuleCoverage()
1213 6*HOUR, DateTimeRule::UTC_TIME); //Last Saturday in Oct, at 6 AM, UTC in TestTimeZoneRuleCoverage()
1214 DateTimeRule *dtr4 = new DateTimeRule(UCAL_MARCH, 8, UCAL_SUNDAY, TRUE, in TestTimeZoneRuleCoverage()
1215 2*HOUR, DateTimeRule::WALL_TIME); // First Sunday on or after Mar 8, at 2 AM, wall time in TestTimeZoneRuleCoverage()
1231 …imeZoneRule *t1 = new TimeArrayTimeZoneRule("t1", -3*HOUR, 0, trtimes1, 1, DateTimeRule::UTC_TIME); in TestTimeZoneRuleCoverage()
1232 …imeZoneRule *t2 = new TimeArrayTimeZoneRule("t2", -3*HOUR, 0, trtimes1, 1, DateTimeRule::UTC_TIME); in TestTimeZoneRuleCoverage()
1233 …imeZoneRule *t3 = new TimeArrayTimeZoneRule("t3", -3*HOUR, 0, trtimes2, 2, DateTimeRule::UTC_TIME); in TestTimeZoneRuleCoverage()
1234 …neRule *t4 = new TimeArrayTimeZoneRule("t4", -3*HOUR, 0, trtimes1, 1, DateTimeRule::STANDARD_TIME); in TestTimeZoneRuleCoverage()
1235 …eRule *t5 = new TimeArrayTimeZoneRule("t5", -4*HOUR, 1*HOUR, trtimes1, 1, DateTimeRule::WALL_TIME); in TestTimeZoneRuleCoverage()
1238 DateTimeRule dtr0(UCAL_MAY, 31, 2*HOUR, DateTimeRule::WALL_TIME); in TestTimeZoneRuleCoverage()
1246 DateTimeRule *dtr0c = dtr0.clone(); in TestTimeZoneRuleCoverage()
1398 TimeArrayTimeZoneRule t0("t0", 4*HOUR, 0, trtimes1, 1, DateTimeRule::UTC_TIME); in TestTimeZoneRuleCoverage()
1432 if (t1->getTimeType() != DateTimeRule::UTC_TIME) { in TestTimeZoneRuleCoverage()
1435 if (t4->getTimeType() != DateTimeRule::STANDARD_TIME) { in TestTimeZoneRuleCoverage()
1438 if (t5->getTimeType() != DateTimeRule::WALL_TIME) { in TestTimeZoneRuleCoverage()
2630 …DateTimeRule *dtRule = new DateTimeRule(UCAL_OCTOBER, -1, UCAL_SUNDAY, 10800000, DateTimeRule::WAL… in TestT8943()
2634 dtRule = new DateTimeRule(UCAL_MARCH, -1, UCAL_SUNDAY, 7200000, DateTimeRule::WALL_TIME); in TestT8943()
2638 dtRule = new DateTimeRule(UCAL_JANUARY, 1, 0, DateTimeRule::WALL_TIME); in TestT8943()
2642 dtRule = new DateTimeRule(UCAL_JANUARY, 1, 1, DateTimeRule::WALL_TIME); in TestT8943()