OffsetDate represents a date with a zone offset. I don't understand the purpose this class serves, what are the main use cases justifying its existence?
What are the use cases justifying the 310 OffsetDate type?
1.1k views Asked by Brian Harris At
1
When analysing the basic components of dates and times there are four basic elements:
These naturaly form seven classes:
(a time-zone can only be used if you know the date and the time, so there is no ZonedDate or ZonedTime class)
The first six forms directly match XML schema definitions, which in effect justifies their existence. In application design terms I suspect that
OffsetDate
will be the least used of the seven classes.Update: 2013-01-24: OffsetDate won't be in JDK 1.8.