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?
OffsetDate represents a date with a zone offset. I don’t understand the purpose this
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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
OffsetDatewill be the least used of the seven classes.Update: 2013-01-24: OffsetDate won’t be in JDK 1.8.