Example usage for java.util SimpleTimeZone observesDaylightTime

List of usage examples for java.util SimpleTimeZone observesDaylightTime

Introduction

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

Prototype

@Override
public boolean observesDaylightTime() 

Source Link

Document

Returns true if this SimpleTimeZone observes Daylight Saving Time.

Usage

From source file:Main.java

public static void main(String args[]) {

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

    System.out.println(stobj.observesDaylightTime());
}

From source file:Test.java

public static void main(String[] args) {
    SimpleTimeZone simpleTimeZone = new SimpleTimeZone(-21600000, "CST", Calendar.MARCH, 1, -Calendar.SUNDAY,
            7200000, Calendar.NOVEMBER, -1, Calendar.SUNDAY, 7200000, 3600000);

    System.out.println(simpleTimeZone.getDisplayName() + " - " + simpleTimeZone.observesDaylightTime());

}