HI, It looks to me like Joda-Time is working correctly. According to this http://www.timeanddate.com/worldclock/clockchange.html?n=64 DST in Chicago changes at 2am back to 1am, thus the hour from 1am to 2am occurs twice.
The time 02:00 does not occur at offset -05:00, thus Joda-Time cannot return it, whereas 01:00 occurs twice at offsets -05:00 and -06:00. To return a time of 02:00-05:00 is up to you - Joda-Time doesn't help much directly with invalid times! All I can think you can do is to use DateTimeZone.nextTransiton() to determine if a transition has occurred and then to print a different textual string. No Joda-Time object can hold the representation you want, but a string can. Stephen On 18 July 2011 15:53, Dev <devajyot...@gmail.com> wrote: > Hi - > > I used both the versions (joda-time-1.6.2.jar > and joda-time-2.0-RC1.jar) and used the following API:- > > DateTime st = new DateTime( > 2011, 11, 6,0,0,0,0, DateTimeZone.forID("America/Chicago")); > > and the results they returned were identical. > > START TIME = { 2011-11-06T00:00:00-05:00 } > END TIME = {2011-11-06T01:00:00-05:00 } > > START TIME = { 2011-11-06T01:00:00-05:00 } > END TIME = {2011-11-06T01:00:00-06:00 } > > START TIME = { 2011-11-06T01:00:00-06:00 } > END TIME = {2011-11-06T02:00:00-06:00 } > > Any suggestions? As stated in my previous email, for fall DST > I want the hour ceiling, i.e. 01:00 -5 to 02:00 -5 and then > 02:00 -5 to 02:00 -6. > > Best Regards- > Dev > > > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest