Java TimeZone Get getDSTTime(TimeZone tz, Date date)

Here you can find the source of getDSTTime(TimeZone tz, Date date)

Description

get DST Time

License

Open Source License

Declaration

public static long getDSTTime(TimeZone tz, Date date) 

Method Source Code


//package com.java2s;

import java.util.*;

public class Main {
    public static long getDSTTime(TimeZone tz, Date date) {
        return date.getTime() + (tz.inDaylightTime(date) ? tz.getDSTSavings() : 0);
    }//from   ww w.  j  a va2 s  . c  om
}

Related

  1. getDefaultTimeZoneRawOffset()
  2. getDefaultTimeZoneString()
  3. getDiffTimeZoneRawOffset(String timeZoneId)
  4. getDisplayDate(Date date, TimeZone tz, Locale inLocale, int style, boolean includeTime)
  5. getDSTSavings(TimeZone tz)
  6. getEnd(String date, TimeZone tz)
  7. getFilteredTimeZoneMap()
  8. getHostDefaultValues()
  9. getHourPart(TimeZone timeZone)