Java SimpleTimeZone.getRawOffset()
Syntax
SimpleTimeZone.getRawOffset() has the following syntax.
public int getRawOffset()
Example
In the following code shows how to use SimpleTimeZone.getRawOffset() method.
/*from w w w.j a v a 2s .c o m*/
import java.util.SimpleTimeZone;
public class Main {
public static void main( String args[] ){
SimpleTimeZone stobj = new SimpleTimeZone(720,"INDIA");
// get raw offset
int offset=stobj.getRawOffset();
// check raw offset value
System.out.println("Raw Offset is : " + offset);
}
}
The code above generates the following result.
Home »
Java Tutorial »
java.util »
Java Tutorial »
java.util »