Example usage for java.util SimpleTimeZone setStartRule

List of usage examples for java.util SimpleTimeZone setStartRule

Introduction

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

Prototype

public void setStartRule(int startMonth, int startDay, int startTime) 

Source Link

Document

Sets the daylight saving time start rule to a fixed date within a month.

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 value: " + stobj);

    // setting start rule   
    stobj.setStartRule(Calendar.MAY, 2, 3600000);

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