commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fredrik Westermarck <>
Subject [lang] DateRange
Date Wed, 14 Jan 2004 18:46:40 GMT

Since I need a DateRange class myself, I thought I'd start working on it.

Is there any specification or old discussions about what the class 
should do? All I could find in the maillist archives about the class was 

which wasn't that helpful...

However I've come up with the following methods that could be useful for 

- getDifference(), the difference between start and stop in milliseconds
- beforeStart(Date), if the parameter is before the start of the range
- afterEnd(Date), if the parameter is after the end of the range
- contains(Date), if the parameter is within the range
- contains(DateRange), if the supplied range is within the range

What do you folks think about the naming and scope of the methods?

Anyone that may have suggestions about additional methods that could be 

Fredrik Westermarck

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message