Code examples for SimpleTimeZone

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
40:	SimpleTimeZone stz = new SimpleTimeZone(21600000, "Central Standard Time"); 
41:	stz.setStartYear(1000); 
42:	stz.inDaylightTime(new Date()); 
43:	stz.clone(); 
Full Snippet Info
8
CodeRank
77:	format.setCalendar(new GregorianCalendar(new SimpleTimeZone(0, "GMT"))); 
Full Snippet Info
7
CodeRank
38:	SimpleTimeZone stz = new SimpleTimeZone(21600000, "Central Standard Time"); 
39:	stz.setStartYear(1000); 
40:	stz.inDaylightTime(new Date()); 
41:	stz.clone(); 
Full Snippet Info
7
CodeRank
74:	SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER, 
-
78:	.inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, 
-
81:	.inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, 
-
83:	assertEquals("Incorrect TZ constructed", "TEST", st.getID()); 
84:	assertEquals("Incorrect TZ constructed", 1000, st.getRawOffset()); 
85:	assertTrue("Incorrect TZ constructed", st.useDaylightTime()); 
-
87:	st.getDSTSavings() == 1000 * 60 * 60); 
Full Snippet Info
6
CodeRank
340:	format.setCalendar(new GregorianCalendar(new SimpleTimeZone(0, "GMT"))); 
Full Snippet Info
6
CodeRank
390:	TimeZone tz0001 = new SimpleTimeZone(60000, "ONE MINUTE"); 
Full Snippet Info
6
CodeRank
48:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
6
CodeRank
110:	SimpleTimeZone st = new SimpleTimeZone(1000, "TEST", Calendar.NOVEMBER, 
-
114:	.inDaylightTime(new GregorianCalendar(1998, Calendar.NOVEMBER, 
-
117:	.inDaylightTime(new GregorianCalendar(1998, Calendar.OCTOBER, 
-
120:	assertEquals("Incorrect TZ constructed", 1000, st.getRawOffset()); 
121:	assertTrue("Incorrect TZ constructed", st.useDaylightTime()); 
-
123:	st.getDSTSavings() == 1000 * 60 * 60); 
Full Snippet Info
6
CodeRank
48:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
6
CodeRank
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
6
CodeRank
60:	rfc822SimpleDateFormat.setTimeZone(new SimpleTimeZone(0, "GMT")); 
Full Snippet Info
5
CodeRank
243:	a1.setTimeZone(new SimpleTimeZone(123, "Bogus")); 
Full Snippet Info
5
CodeRank
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
5
CodeRank
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
5
CodeRank