The recommended solution for days between is int days = Days.daysBetween(start, end).getDays(); http://joda-time.sourceforge.net/key_period.html
Stephen On 12 October 2011 10:38, Colin Yates <[email protected]> wrote: > The idiomatic way seems to be new Period(start, end, > PeriodType.days()).toStandardDays().getDays() > > Thanks for everyones help :) > > Col > > Excerpts from Bård Dybwad Kristensen's message of 2011-10-11 23:16:01 +0100: >> Hi >> >> Without testing anything, my guess would be that it is related to the fact >> that London goes over to winter time Sunday 30th of October at 02:30 local >> time. I guess you are aware of this. The time zone goes from offset +1 to >> UTC. So if you have midnight today it will have an offset of +01, but >> midnight the 31th will have an offset of zero, ie UTC. That makes sense, >> does it not? And everything is as expected? >> >> regards, >> Bård >> >> On Tue, Oct 11, 2011 at 21:03, Mark Carroll <[email protected]> wrote: >> >> > Colin Yates wrote: >> > >> > > On an aside - what is the idiomatic way to determine the number of whole >> > days between two dates? >> > >> > Days.daysBetween is often handy. >> > >> > Mark >> > >> > -- >> > Mark Carroll >> > Software Engineer >> > [email protected] >> > http://www.vecna.com/ >> > >> > Cambridge Research Laboratory >> > Vecna Technologies, Inc. >> > 36 Cambridge Park Drive >> > Cambridge, MA 02140 >> > Phone: (617) 864-0636 >> > Fax: (617) 864-0638 >> > >> > Better Technology, Better World (TM) >> > >> > The contents of this message may be privileged and confidential. >> > Therefore, if this message has been received in error, please delete it >> > without reading it. Your receipt of this message is not intended to >> > waive any applicable privilege. Please do not disseminate this message >> > without the permission of the author. >> > >> > >> > ------------------------------------------------------------------------------ >> > All the data continuously generated in your IT infrastructure contains a >> > definitive record of customers, application performance, security >> > threats, fraudulent activity and more. Splunk takes this data and makes >> > sense of it. Business sense. IT sense. Common sense. >> > http://p.sf.net/sfu/splunk-d2d-oct >> > _______________________________________________ >> > Joda-interest mailing list >> > [email protected] >> > https://lists.sourceforge.net/lists/listinfo/joda-interest >> > > > ------------------------------------------------------------------------------ > All the data continuously generated in your IT infrastructure contains a > definitive record of customers, application performance, security > threats, fraudulent activity and more. Splunk takes this data and makes > sense of it. Business sense. IT sense. Common sense. > http://p.sf.net/sfu/splunk-d2d-oct > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
