On Fri, Apr 9, 2010 at 2:21 PM, Adam Vartanian <flo...@google.com> wrote:
> Yes.  The no-argument toDateTime() method uses the default time zone,
> which usually is a timezone that uses daylight saving time.  Any
> timezone that uses daylight saving time has some date/time
> combinations that simply do not exist: they're during the period of
> time that daylight saving time omits.  For instance, in the US Eastern
> timezone, March 14, 2010, 02:33:54 is a time that does not exist; in
> that timezone, local time skipped directly from March 14, 2010,
> 01:59:59 to March 14, 2010, 03:00:00.  If you try to convert a
> LocalDateTime with that date/time combination to a DateTime in US
> Eastern, it throws an exception because there's no such thing.
>
> UTC doesn't have daylight saving time, so it doesn't run into that problem.

Great explanation!
Thanks for the quick response, I really appreciate that.
-- 
Mauro Ciancio <maurociancio at gmail dot com>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to