Search in sources :

Example 16 with TimeZone

use of java.util.TimeZone in project j2objc by google.

the class SimpleTimeZoneTest method testDstNewYork2014_9thMarch_2ndNovember_StandardTime.

public void testDstNewYork2014_9thMarch_2ndNovember_StandardTime() {
    TimeZone timeZone = new SimpleTimeZone(NEW_YORK_RAW_OFFSET, "EST", Calendar.MARCH, 9, 0, 7200000, SimpleTimeZone.STANDARD_TIME, Calendar.NOVEMBER, 2, 0, 3600000, SimpleTimeZone.STANDARD_TIME, 3600000);
    checkDstNewYork2014(timeZone);
}
Also used : TimeZone(java.util.TimeZone) SimpleTimeZone(java.util.SimpleTimeZone) SimpleTimeZone(java.util.SimpleTimeZone)

Example 17 with TimeZone

use of java.util.TimeZone in project j2objc by google.

the class SimpleTimeZoneTest method testDstNewYork2014_9thMarch_2ndNovember_WallTime.

public void testDstNewYork2014_9thMarch_2ndNovember_WallTime() {
    TimeZone timeZone = new SimpleTimeZone(NEW_YORK_RAW_OFFSET, "EST", Calendar.MARCH, 9, 0, 7200000, SimpleTimeZone.WALL_TIME, Calendar.NOVEMBER, 2, 0, 7200000, SimpleTimeZone.WALL_TIME, 3600000);
    checkDstNewYork2014(timeZone);
}
Also used : TimeZone(java.util.TimeZone) SimpleTimeZone(java.util.SimpleTimeZone) SimpleTimeZone(java.util.SimpleTimeZone)

Example 18 with TimeZone

use of java.util.TimeZone in project j2objc by google.

the class SimpleTimeZoneTest method testDstNewYork2014_2ndSundayMarch_1stSundayNovember_DefaultTime.

public void testDstNewYork2014_2ndSundayMarch_1stSundayNovember_DefaultTime() {
    TimeZone timeZone = new SimpleTimeZone(NEW_YORK_RAW_OFFSET, "EST", Calendar.MARCH, 2, Calendar.SUNDAY, 7200000, Calendar.NOVEMBER, 1, Calendar.SUNDAY, 7200000, 3600000);
    checkDstNewYork2014(timeZone);
}
Also used : TimeZone(java.util.TimeZone) SimpleTimeZone(java.util.SimpleTimeZone) SimpleTimeZone(java.util.SimpleTimeZone)

Example 19 with TimeZone

use of java.util.TimeZone in project j2objc by google.

the class SimpleTimeZoneTest method testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime.

public void testDstParis2014_LastSundayMarch_LastSundayOctober_UtcTime() {
    TimeZone timeZone = new SimpleTimeZone(PARIS_RAW_OFFSET, "Europe/Paris", Calendar.MARCH, -1, Calendar.SUNDAY, 3600000, SimpleTimeZone.UTC_TIME, Calendar.OCTOBER, -1, Calendar.SUNDAY, 3600000, SimpleTimeZone.UTC_TIME, 3600000);
    checkDstParis2014(timeZone);
}
Also used : TimeZone(java.util.TimeZone) SimpleTimeZone(java.util.SimpleTimeZone) SimpleTimeZone(java.util.SimpleTimeZone)

Example 20 with TimeZone

use of java.util.TimeZone in project j2objc by google.

the class SimpleTimeZoneTest method testDstNewYork2014_2ndSundayMarch_1stSundayNovember_WallTime.

public void testDstNewYork2014_2ndSundayMarch_1stSundayNovember_WallTime() {
    TimeZone timeZone = new SimpleTimeZone(NEW_YORK_RAW_OFFSET, "EST", Calendar.MARCH, 2, Calendar.SUNDAY, 7200000, SimpleTimeZone.WALL_TIME, Calendar.NOVEMBER, 1, Calendar.SUNDAY, 7200000, SimpleTimeZone.WALL_TIME, 3600000);
    checkDstNewYork2014(timeZone);
}
Also used : TimeZone(java.util.TimeZone) SimpleTimeZone(java.util.SimpleTimeZone) SimpleTimeZone(java.util.SimpleTimeZone)

Aggregations

TimeZone (java.util.TimeZone)577 Date (java.util.Date)140 Calendar (java.util.Calendar)137 SimpleTimeZone (java.util.SimpleTimeZone)89 Test (org.junit.Test)85 SimpleDateFormat (java.text.SimpleDateFormat)69 Locale (java.util.Locale)69 GregorianCalendar (java.util.GregorianCalendar)56 ArrayList (java.util.ArrayList)32 DateFormat (java.text.DateFormat)24 ParseException (java.text.ParseException)23 IOException (java.io.IOException)20 Map (java.util.Map)15 HashSet (java.util.HashSet)13 PreparedStatement (java.sql.PreparedStatement)11 HashMap (java.util.HashMap)11 DateTimeZone (org.joda.time.DateTimeZone)11 Support_TimeZone (tests.support.Support_TimeZone)10 Resources (android.content.res.Resources)9 SQLException (java.sql.SQLException)9