Java TimeZone setID() MethodThe setID(String ID) method of TimeZone class is used to set the TimeZone ID for the given location. This doesn't change any other data in the TimeZone object. SyntaxParametersID - the new TimeZone ID. Example 1Output: TimeZone ID: GMT+08:00 Example 2Output: TimeZone ID:Etc/GMT+12 Next TopicJava-timezone-setrawoffset-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