Get daylight saving

int getDSTSavings()
Returns the amount of time to be added to local standard time to get local wall clock time.
abstract boolean inDaylightTime(Date date)
Queries if the given date is in daylight savings time in this time zone.
abstract boolean useDaylightTime()
Queries if this time zone uses daylight savings time.

import java.util.Date;
import java.util.TimeZone;

public class Main {

  public static void main(String[] args) {
    TimeZone tz = TimeZone.getTimeZone("America/New_York");

    System.out.println(tz.inDaylightTime(new Date()));
  }
}

The output:


false
Home 
  Java Book 
    Essential Classes  

TimeZone:
  1. TimeZone class
  2. Create TimeZone
  3. Get availablve timezone ids
  4. Get display name for a timezone
  5. Get daylight saving
  6. Get timezone id