Example usage for java.util SimpleTimeZone setRawOffset

List of usage examples for java.util SimpleTimeZone setRawOffset

Introduction

In this page you can find the example usage for java.util SimpleTimeZone setRawOffset.

Prototype

public void setRawOffset(int offsetMillis) 

Source Link

Document

Sets the base time zone offset to GMT.

Usage

From source file:Main.java

public static void main(String args[]) {

    SimpleTimeZone stobj = new SimpleTimeZone(820, "GMT");

    // checking initial value     
    System.out.println("Initial raw offset: " + stobj.getRawOffset());

    // setting raw offset   
    stobj.setRawOffset(7200000);

    // checking the new value      
    System.out.println("Final raw offset value : " + stobj.getRawOffset());
}