Best code examples for Java 8 SimpleTimeZone class (java.util.SimpleTimeZone)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 SimpleTimeZone class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Java 8 SimpleTimeZone examples from Open Source projects
This code example shows how to use the following methods: clone, inDaylightTime, setStartYear
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
This code example shows how to use the following methods:
77:	format.setCalendar(new GregorianCalendar(new SimpleTimeZone(0, "GMT"))); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: clone, inDaylightTime, setStartYear
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
This code example shows how to use the following methods: inDaylightTime, setEndRule, setStartRule, useDaylightTime
339:	SimpleTimeZone st = new SimpleTimeZone(1000, "Test_TZ"); 
-
342:	st.setStartRule(Calendar.NOVEMBER, 8, Calendar.SUNDAY, 1, false); 
343:	st.setEndRule(Calendar.NOVEMBER, 15, Calendar.SUNDAY, 1, true); 
344:	assertTrue("StartRule improperly set1", st.useDaylightTime()); 
-
346:	.inDaylightTime((new GregorianCalendar(1999, Calendar.NOVEMBER, 
-
349:	.inDaylightTime((new GregorianCalendar(1999, Calendar.NOVEMBER, 
-
352:	.inDaylightTime(new GregorianCalendar(1999, Calendar.NOVEMBER, 
-
355:	.inDaylightTime(new GregorianCalendar(1999, Calendar.NOVEMBER, 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
340:	format.setCalendar(new GregorianCalendar(new SimpleTimeZone(0, "GMT"))); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
390:	TimeZone tz0001 = new SimpleTimeZone(60000, "ONE MINUTE"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDSTSavings, getRawOffset, inDaylightTime, useDaylightTime
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
This code example shows how to use the following methods:
48:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
48:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
35:	this.timeZone = new SimpleTimeZone(timeZoneOffSet, SimpleTimeZone.getAvailableIDs(timeZoneOffSet)[0]); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
50:	Calendar cal = Calendar.getInstance(new SimpleTimeZone(0, "GMT")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
60:	rfc822SimpleDateFormat.setTimeZone(new SimpleTimeZone(0, "GMT")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setEndRule, setStartRule
11:	SimpleTimeZone pdt = new SimpleTimeZone(-3 * 60 * 60 * 1000, "GMT-3:00"); 
-
15:	pdt.setStartRule(Calendar.NOVEMBER, 1, Calendar.SUNDAY, 0); 
-
18:	pdt.setEndRule(Calendar.FEBRUARY, -1, Calendar.SUNDAY, 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
390:	TimeZone tz0001 = new SimpleTimeZone(60000, "ONE MINUTE"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
80:	yyF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
48:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setEndRule, setStartRule
29:	SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]); 
-
32:	pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000); 
33:	pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 2 * 60 * 60 * 1000); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
67:	SimpleTimeZone      tz = new SimpleTimeZone(0, "Z"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
86:	dateF.setTimeZone(new SimpleTimeZone(0,"Z")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
243:	a1.setTimeZone(new SimpleTimeZone(123, "Bogus")); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setEndRule, setStartRule
149:	SimpleTimeZone pdt = new SimpleTimeZone(-5 * 60 * 60 * 1000, ids[0]); 
150:	pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 2 * 60 * 60 * 1000); 
151:	pdt.setEndRule(Calendar.OCTOBER, -1, Calendar.SUNDAY, 
Full Snippet Info
5
CodeRank
See Code Examples for Java 8 SimpleTimeZone Methods: