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
>
>

<<image001.jpg>>

------------------------------------------------------------------------------
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to