Online Java Compiler By
JavaTpoint.com
import java.util.*; public class TimeZoneExample2 { public static void main( String args[] ){ TimeZone zone = TimeZone.getTimeZone("Asia/Kolkata"); System.out.println("The Offset value of TimeZone: " + zone.getOffset(Calendar.ZONE_OFFSET)); } }
Output