First entry in the FAQ covers this.

http://joda-time.sourceforge.net/faq.html

On 8/7/06, Benoit Xhenseval <[EMAIL PROTECTED]> wrote:
Awfully sorry to have to ask this question but I'm puzzled:
 
LocalDate start....
LocalDate end...
 
I want the different in number of days...
 
Tried this:
Interval intv = new Interval(start,end);
Period p = intv.toPeriod();
and then p.getDays().... unfortunately the answer is NOT what I expected... it seems to be only the day element of the Period and if my dates are exactly 1 m apart, it returns 0...
 
Surely I am missing an obvious way...
 
I'd grateful if somebody could enlighten me...
 
Many thanks
 
Benoit

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to