Examples of inDaylightTime()


Examples of java.util.SimpleTimeZone.inDaylightTime()

      -12600000, "Canada/Newfoundland",
      Calendar.MARCH, 8, -Calendar.SUNDAY, 60000,
      Calendar.NOVEMBER, 1, -Calendar.SUNDAY, 60000);

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

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

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

Examples of java.util.SimpleTimeZone.inDaylightTime()

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

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

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

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

Examples of java.util.SimpleTimeZone.inDaylightTime()

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

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

    harness.checkPoint("test 2");

    TimeZone tz2 = new SimpleTimeZone(
      -12600000, "Test1",
View Full Code Here

Examples of java.util.SimpleTimeZone.inDaylightTime()

      3600000);

    // NB this particular check fails on several proprietary JVMs
    // because the end time is interpreted with startTimeMode.
    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz2.inDaylightTime(new Date(cal.getTimeInMillis())));

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

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

Examples of java.util.SimpleTimeZone.inDaylightTime()

    // because the end time is interpreted with startTimeMode.
    cal.set(2037, Calendar.NOVEMBER, 1, 3, 30, 0);
    harness.check(tz2.inDaylightTime(new Date(cal.getTimeInMillis())));

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

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

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

Examples of java.util.SimpleTimeZone.inDaylightTime()

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

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

    harness.checkPoint("test 3");

    TimeZone tz3 = new SimpleTimeZone(
      -12600000, "Test2",
View Full Code Here

Examples of java.util.SimpleTimeZone.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

Examples of java.util.SimpleTimeZone.inDaylightTime()

    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

Examples of java.util.SimpleTimeZone.inDaylightTime()

    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

Examples of java.util.SimpleTimeZone.inDaylightTime()

      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
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.