A few months ago, I posted a question on the forums about an Interval class that uses Partials, instead of Instants. In other words a DateRange class.

http://sourceforge.net/forum/forum.php?thread_id=1384060&forum_id=337835

In that post, I mentioned that I had implemented a simple DateRange class, using YearMonthDay objects. I was encouraged to send what I had done to this mailing list.
I've finally got around to finishing my unit tests and replicating the rest of the Interval API, so here it is.
The unit tests have full coverage.



The class only deals with YearMonthDay, there is no support for TimeOfDay.

From reading through some posts just now, I've noticed that

a) The plan is to deprecate YearMonthDay

and

b) Work may have already started on a DateRange class.

Nevertheless, feel free to use this code if it is of any use to the project.

Cheers,
Andreas Mross.
p.s. the attached file is a zip, renamed to .jar because of sourceforge restrictions. If you have trouble opening it, change the file name to .zip
_____________________________________________________________________
This email message (including any file attachments transmitted with it) is for the sole use of the individual or entity to whom it is addressed and may contain confidential and privileged information. Any unauthorised review, use, alteration, disclosure or distribution is prohibited. If you have received this email in error, please notify the sender by return email and destroy all copies of the original message.
Any confidentiality or legal professional privilege is not waived or lost by any mistaken delivery of the email.
Opinions, conclusions and other information in this message that do not relate to the official business of the company shall be understood as neither given nor endorsed by it.

Attachment: jodaDateRange.jar
Description: Binary data

Reply via email to