java - How to get GMT/IST details from timezone object? -
how zone info timezone object?
i have timezone java object , need display info below
ex: ist - india standard time - (gmt+5.30)
i can ist - id , display name (indian standard time) , offset 5:30.
how zone - gmt ???
thanks.
for displaying in zone-id - zone-name - (gmt standard offset) format
set required time zone
get required data above object
timezone tz = timezone.gettimezone("asia/calcutta");
tz.getid() // zone-id tz.getdisplayname() // zone-name tz.getoffset(timezone.getdefault().getid()) // gmt standard offset
Comments
Post a Comment