Find DST transition timestamp with java.util.TimeZone
问题 Is it possible to get the previous and next DST transition timestamp with the Java Calendar/Date/TimeZone API? With Joda-Time I can write: DateMidnight today = new DateMidnight(2009, 2, 24); DateTimeZone zone = today.getZone(); DateTime previousTransition = new DateTime(zone.previousTransition(today.getMillis())); // 2008-10-26T02:59:59.999+02:00 for Europe/Berlin System.out.println(previousTransition); DateTime nextTransition = new DateTime(zone.nextTransition(today.getMillis())); // 2009-03