Joda-Time has the correct primitive in LocalTime, however there is no additional code to perform the calculations you want, especially over midnight.
Stephen On 19 July 2010 13:07, Ludwig Magnusson <lud...@itcatapult.com> wrote: > Hi! > > I have been searching the joda documentation for a way to solve my problem > but I haven’t really found something to help me. > > > > I am trying to write a method that determines if a specific time is in a > defined time interval. > > I am talking about times of the day so examples might be 1am – 3am and such. > > The trouble is when the interval is across midnight e.g. 10pm – 4am. > > > > I would also like to take an interval and determine how much of it is in the > defined time-interval. > > E.g. Two hours of the interval 1pm - 4pm is within the interval 2pm – 6pm. > > > > Is there any way joda-time can help me? > > /Ludwig > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest