Hi,

This question concerns the issue of "overlapping timezones" like 
Europe/Copenhagen.

I am parsing a sequence of timestamps in Europe/Copenhagen like:

2009-10-25 01:00
2009-10-25 02:00
2009-10-25 02:00
2009-10-25 03:00
2009-10-25 04:00

with a DateTimeFormatter created this way:

DateTimeFormat.forPattern("YYYY-MM-dd 
HH:mm").withZone(DateTimeZone.forID("Europe/Copenhagen"));

The goal is to reconstruct the time in UTC.

When DST ends, the clock is set one hour back and we have to identical strings 
of that point in time. Currently I detect this with a bunch of 
getZone().getOffset() and some plus/minusHours() calls and but it seems I still 
need to know which of the offsets the DateTimeFormatter.parseDateTime is going 
to choose on this overlap. Is this defined anywhere?

Also, this seems quite messy. Is there any better way of going at it ?

Kind regards
Johannes
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to