/** * TimeZone API * Returns the amount of time to be added to local standard time * to get local wall clock time. */ @Override public int getDSTSavings() { if (finalZone != null){ return finalZone.getDSTSavings(); } return super.getDSTSavings(); }
|| (nonExistingTimeOpt & STD_DST_MASK) != LOCAL_DST && (nonExistingTimeOpt & FORMER_LATTER_MASK) != LOCAL_LATTER) { date -= getDSTSavings(); recalc = true; || (duplicatedTimeOpt & STD_DST_MASK) != LOCAL_STD && (duplicatedTimeOpt & FORMER_LATTER_MASK) == LOCAL_FORMER) { date -= getDSTSavings(); recalc = true;
dstRule = new AnnualTimeZoneRule(getID() + "(DST)", getRawOffset(), getDSTSavings(), dtRule, startYear, AnnualTimeZoneRule.MAX_YEAR);