On 2 May 2012 15:10, Matthew McCawley <mmccaw...@automatedlogic.com> wrote: > I searched through the mailer archives, but I couldn't find anything about > this. It was also asked here with no answer. > http://stackoverflow.com/questions/4870637/what-is-the-joda-time-equivalent-of-few-jdk-timezone-functions > > I'd rather not use the method at all, but I'm trying to retrofit Joda to > some legacy code that uses it. Subtracting the time zone's DST and standard > offsets would get the equivalent (and probably be more accurate, anyway), > but I can't find a clean way to get the DST offset without having to go > through transitions and check.
Well, getDSTSavings() is the difference between getStandardOffset() and getOffset() for any given instant. > On a related note, does getStandardOffset return the same value regardless > of the instant passed in? If so, why does it take an argument? The standard offset can and does changes over time. For example, if the UK moved to have its clocks on the same time as France and Germany, the standard offset would change from zero to one hour. Stephen ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest