The setTimZonee() method of java.util.Calendar class is used to set the TimeZone with the passed TimeZone value(object) as a parameter.
value - value which is to set as TimeZone.
NA
NA
Output:
TimeZone:Pacific Standard Time Time Zone after changing to GMT:Greenwich Mean Tim
Output:
Display Name of Current TimeZone (mycal2) :Pacific Standard Time Display Name of TimeZone (mycal3):Pacific Standard Time
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