Lines Matching refs:tz

116 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz)  in findDaylightBoundaryUsingTimeZone()  argument
122 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone()
123 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone()
127 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone()
128 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone()
134 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone()
143 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone()
144 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone()
337 TimeZone *tz; in TestBoundaries() local
338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries()
339 delete tz; in TestBoundaries()
382 TimeZoneBoundaryTest::testUsingBinarySearch(SimpleTimeZone* tz, UDate d, UDate expectedBoundary) in testUsingBinarySearch() argument
387 UBool startsInDST = tz->inDaylightTime(d, status); in testUsingBinarySearch()
389 if (tz->inDaylightTime(max, status) == startsInDST) { in testUsingBinarySearch()
395 if (tz->inDaylightTime(mid, status) == startsInDST) { in testUsingBinarySearch()
425 SimpleTimeZone *tz; in TestNewRules() local
428tz = new SimpleTimeZone(- 8 * (int32_t)ONE_HOUR, "Test_1", UCAL_AUGUST, 2, UCAL_TUESDAY, 2 * (int3… in TestNewRules()
430 testUsingBinarySearch(tz, date(97, 0, 1), 858416400000.0); in TestNewRules()
432 testUsingBinarySearch(tz, date(97, 6, 1), 871380000000.0); in TestNewRules()
433 delete tz; in TestNewRules()
436tz = new SimpleTimeZone(- 8 * (int32_t)ONE_HOUR, "Test_2", UCAL_APRIL, 14, - UCAL_WEDNESDAY, 2 *(i… in TestNewRules()
438 testUsingBinarySearch(tz, date(97, 0, 1), 861184800000.0); in TestNewRules()
440 testUsingBinarySearch(tz, date(97, 6, 1), 874227600000.0); in TestNewRules()
441 delete tz; in TestNewRules()