Hi everyone, hoping someone can help me out with a DST issue... I'm working with a third party service that tracks hourly market prices for a commodity. Unfortunately the service uses "Eastern Prevailing Time," i.e. EST or EDT (whichever is in effect). I get data as a Date (accurate to the day), an "hour ending," and a "is duplicate hour" flag - which indicates whether this is the 'first' 2am or the second on the DST transition day. Fun, right?
So I'm trying to figure out how to convert this into UTC. I can initialize a DateTime instance accurate to the day, with the current timezone in effect, but if I call withHourOfDay(2) on the Fall DST changeover day, is that the first hour or the second? I almost thought I would be better off always using EST, _add_ the hour to (date at midnight), and add 1 if DST is in effect. But I have exceptions if it is the DST changeover day and the hour is 1... Any thoughts? Thanks in advance. -Tom ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest