Joda-time has an Interval class, which is a range between DateTimes. What can be used for a range of LocalDates?
I want an object that represents, for example "from 1/1/2011 to 10/1/2011", without the time (or timezones) ever coming into the picture.
As far as I see, joda-time doesn't have anything built in for that.
If there doesn't exist anything for it, and we'd create it, what should it look like? Most importantly, which interfaces from joda-time could it implement to best integrate into the other types, staying consistent with the joda-time design?
Would it make sense for it to implement ReadableInterval
, where getStart
and getEnd
return DateMidnight
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…