Package java.util

Examples of java.util.TimeZone.inDaylightTime()


      Calendar.MARCH, 8, -Calendar.SUNDAY, 60000,
      Calendar.NOVEMBER, 1, -Calendar.SUNDAY, 3660000,
      3600000);

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
View Full Code Here


    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
    harness.check(!tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    harness.checkPoint("test 4");
View Full Code Here

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
    harness.check(!tz3.inDaylightTime(new Date(cal.getTimeInMillis())));

    harness.checkPoint("test 4");

    ((SimpleTimeZone) tz2).setEndRule(
      Calendar.NOVEMBER, 1, -Calendar.SUNDAY, 3660000);
View Full Code Here

      Calendar.NOVEMBER, 1, -Calendar.SUNDAY, 60000,
      SimpleTimeZone.STANDARD_TIME,
      3600000);

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
View Full Code Here

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
    harness.check(!tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    harness.checkPoint("test 6");
View Full Code Here

    cal.set(2037, Calendar.NOVEMBER, 1, 3, 31, 0);
    harness.check(!tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2038, Calendar.JANUARY, 1, 3, 29, 0);
    harness.check(!tz4.inDaylightTime(new Date(cal.getTimeInMillis())));

    harness.checkPoint("test 6");

    TimeZone tz5 = new SimpleTimeZone(
      -12600000, "Test3",
View Full Code Here

      Calendar.MARCH, 8, -Calendar.SUNDAY, 60000,
      Calendar.JANUARY, 1, 0, 60000,
      3600000);

    cal.set(2007, Calendar.DECEMBER, 31, 23, 59, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 29, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 30, 0);
View Full Code Here

    cal.set(2007, Calendar.DECEMBER, 31, 23, 59, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 29, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 30, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 31, 0);
View Full Code Here

    cal.set(2007, Calendar.JANUARY, 1, 2, 29, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 30, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 31, 0);
    harness.check(!tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 3, 2, 31, 0);
View Full Code Here

    cal.set(2007, Calendar.JANUARY, 1, 2, 30, 0);
    harness.check(tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 1, 2, 31, 0);
    harness.check(!tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 3, 2, 31, 0);
    harness.check(!tz5.inDaylightTime(new Date(cal.getTimeInMillis())));

    cal.set(2007, Calendar.JANUARY, 3, 2, 31, 0);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.