Java SimpleTimeZone(int rawOffset, String ID) Constructor

Syntax

SimpleTimeZone(int rawOffset, String ID) constructor from SimpleTimeZone has the following syntax.

public SimpleTimeZone(int rawOffset,    String ID)

Example

In the following code shows how to use SimpleTimeZone.SimpleTimeZone(int rawOffset, String ID) constructor.


//w w w . j  a v a 2  s .  c om
import java.util.SimpleTimeZone;

public class Main {
   public static void main( String args[] ){
      
      SimpleTimeZone stobj = new SimpleTimeZone(820,"US");
      
      // checking day light time  
      System.out.println("Use day light time : " + stobj.useDaylightTime());
   }      
}

The code above generates the following result.