* @param self a Date
* @return the DST offset as a Duration.
*/
public static Duration getDaylightSavingsOffset(Date self) {
TimeZone timeZone = getTimeZone(self);
int millis = (timeZone.useDaylightTime() && timeZone.inDaylightTime(self))
? timeZone.getDSTSavings() : 0;
return new TimeDuration(0, 0, 0, millis);
}
public static Duration getDaylightSavingsOffset(BaseDuration self) {