> What is the proper way to calculate the duration between
> two LocalDateTime?, I don't care about time zone.

There's no good way to do that directly.  I'd just convert them to
DateTimes in UTC and subtract that way:

Duration d = new Duration(now.toDateTime(DateTimeZone.UTC),
limit.toDateTime(DateTimeZone.UTC));

- Adam

------------------------------------------------------------------------------
Download Intel® 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