Java TimeZone getTimeZone() MethodThe getTimeZone(String ID) method of TimeZone class is used to get the TimeZone of the given ID. SyntaxParametersID - ID for a TimeZone. ReturnsIt returns TimeZone for the given ID Example 1Output: Time Zone:sun.util.calendar.ZoneInfo[id="Pacific/Palau",offset=32400000,dstSavings=0,useDaylight=false,transitions=3, lastRule=null] Example 2Output: Time Zone:sun.util.calendar.ZoneInfo[id="GMT",offset=0,dstSavings=0,useDaylight=false,transitions=0,lastRule=null] Next TopicJava-timezone-hassamerules-method |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India