Example usage for java.util SimpleTimeZone setStartYear

List of usage examples for java.util SimpleTimeZone setStartYear

Introduction

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

Prototype

public void setStartYear(int year) 

Source Link

Document

Sets the daylight saving time starting year.

Usage

From source file:Main.java

public static void main(String args[]) {

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

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

    // setting start year   
    stobj.setStartYear(2008);

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