Stephen, Thanks for the info. I have two more questions:
* I cannot find a plain (non-recurring) interval parser in joda-time, is there one? * Are there plans for supporting recurring intervals in the future? TIA, Jérôme -----Message d'origine----- De : Stephen Colebourne [mailto:scolebou...@joda.org] Envoyé : mercredi 22 juillet 2009 16:58 À : Discussion of the Joda project Objet : Re: [Joda-interest] [Period] How to validate if a Date is into a period The Interval class has methods to find whether a DateTime is contained within or not. Joda-Time doesn't support recurring periods like "R/1997-10/P1Y" Stephen 2009/7/22 Guermeur, Jerome <jerome.guerm...@capgemini.com>: > I don't know exactly . do you think i can resolve my problem with an > Interval? It's that I didn't manage to find something to compare my date and > my period . and also, how could I create an Interval instance 's object from > my String period (like R/1997-10/P1Y) ? > > > > Regards, > > > > Jérôme Guermeur > > > > > > ________________________________ > > De : Rodrigo Canabrava [mailto:canab...@gmail.com] > Envoyé : mercredi 22 juillet 2009 15:26 > À : Discussion of the Joda project > Objet : Re: [Joda-interest] [Period] How to validate if a Date is into a > period > > > > I think what you are looking for is an Interval, not a Period. > > > > 2009/7/22 Guermeur, Jerome <jerome.guerm...@capgemini.com> > > Hi, > > > > I have a big problem with a Java application. I have to verify if a Date is > into a period. The period is defined in ISO8601 format, so it could be > something like: > > 1997-10-01T00/2009-12-31T24:00 > R/1997-10/P1Y > > > > So, I wonder how to realize this verification . I think I have to use > 'Period' object in order to create an instance of Period from my ISO8601 > date (with the PeriodFormatter object I think). But, then, I don't know how > to verify if my Date is into this period . I didn't see any method of Period > class witch seems to do that. > > > > Has someone got any idea to resolve this problem? > > > > Best Regards, > > ___________________________________________ > Jérôme Guermeur > > Consultant > > Capgemini Brest / Pôle IFREMER > > Tel: +33-(0)2-98-33-32-35 > > ________________________________________ > > > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. > > ------------------------------------------------------------------------------ > > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. > > ------------------------------------------------------------------------------ > > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > > ------------------------------------------------------------------------------ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. ------------------------------------------------------------------------------ _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest