public boolean inDaylightTime(Date date){
  if (date == null) {
    throw new NullPointerException();
  }
  if (transitions == null) {
    return false;
  }
  long utc=date.getTime() - rawOffsetDiff;
  int index=getTransitionIndex(utc,UTC_TIME);
  if (index < 0) {
    return false;
  }
  if (index < transitions.length) {
    return (transitions[index] & DST_MASK) != 0;
  }
  SimpleTimeZone tz=getLastRule();
  if (tz != null) {
    return tz.inDaylightTime(date);
  }
  return false;
}

public boolean inDaylightTime ( Date date ) { if ( date == null ) { throw new NullPointerException ( ) ; } if ( transitions == null ) { return false ; } long utc = date . getTime ( ) - rawOffsetDiff ; int index = getTransitionIndex ( utc , UTC_TIME ) ; if ( index < 0 ) { return false ; } if ( index < transitions . length ) { return ( transitions [ index ] & DST_MASK ) != 0 ; } SimpleTimeZone tz = getLastRule ( ) ; if ( tz != null ) { return tz . inDaylightTime ( date ) ; } return false ; }
queries if the specified date is in daylight saving time .
