I can certainly agree that there might have been a better name than Period. I like your suggestion, and I would even go further and suggest that Interval would have been a better term.
But Period is certainly acceptable. It captures the meaning well enough -- a period of time between 2 events. https://www.thefreedictionary.com/period+of+time On Wed, Jun 18, 2025, 1:54 PM Archie Cobbs <archie.co...@gmail.com> wrote: > Period is like Duration - they are both "lengths of time", just using > different units (so they are both a TemporalAmount). > > Similar to how LocalDateTime vs. Instant are both "points in time", just > using different units (so they are both a Temporal). > > But you bring up a good point - perhaps CalendarDuration would have been > a better name than Period... > > -Archie > > On Wed, Jun 18, 2025 at 12:24 PM Pavel Rappo <pavel.ra...@gmail.com> > wrote: > >> We are talking about a period, not an interval. I used the word >> "interval" in my previous email in the sense close to that def. #5 >> from your dictionary link: >> >> > : a set of real numbers between two numbers either including or >> excluding one or both of them >> >> So to me, an interval between two dates logically consists of all >> (time) instants between its both ends. >> >> Alright, your reply kinda tips the scales in favour of "it's just me". >> Perhaps others don't have a similar issue with java.util.Period. >> > > -- > Archie L. Cobbs >