Lines Matching refs:tz
118 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() argument
124 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone()
125 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone()
129 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone()
130 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone()
136 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone()
145 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone()
146 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone()
339 TimeZone *tz; in TestBoundaries() local
340 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries()
341 delete tz; in TestBoundaries()
384 TimeZoneBoundaryTest::testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary) in testUsingBinarySearch() argument
389 UBool startsInDST = tz->inDaylightTime(d, status); in testUsingBinarySearch()
391 if (tz->inDaylightTime(max, status) == startsInDST) { in testUsingBinarySearch()
397 if (tz->inDaylightTime(mid, status) == startsInDST) { in testUsingBinarySearch()
427 SimpleTimeZone *tz; in TestNewRules() local
430 …tz = new SimpleTimeZone(- 8 * (int32_t)ONE_HOUR, "Test_1", UCAL_AUGUST, 2, UCAL_TUESDAY, 2 * (int3… in TestNewRules()
432 testUsingBinarySearch(tz, date(97, 0, 1), 858416400000.0); in TestNewRules()
434 testUsingBinarySearch(tz, date(97, 6, 1), 871380000000.0); in TestNewRules()
435 delete tz; in TestNewRules()
438 …tz = new SimpleTimeZone(- 8 * (int32_t)ONE_HOUR, "Test_2", UCAL_APRIL, 14, - UCAL_WEDNESDAY, 2 *(i… in TestNewRules()
440 testUsingBinarySearch(tz, date(97, 0, 1), 861184800000.0); in TestNewRules()
442 testUsingBinarySearch(tz, date(97, 6, 1), 874227600000.0); in TestNewRules()
443 delete tz; in TestNewRules()