[threeten-dev] Calendar.toZonedDateTime?
Masayoshi Okutsu
masayoshi.okutsu at oracle.com
Wed Jun 26 23:33:15 PDT 2013
On 6/27/2013 4:43 AM, Stephen Colebourne wrote:
> In addition, the Calendar.Builder should have a setInstant(Instant)
> method, as it looks odd to have two setInstant() methods, neither of
> which actually take an Instant!
I proposed Calendar.Builder as a vehicle for JSR310-to-Calendar
conversions in addition to addressing the problem of lacking Calendar
constructors/factories reported by a developer. But my conversion
proposal wasn't well accepted within Oracle. So I proceeded with
Calendar.Builder having no JSR 310 conversions. setInstant(Instant) was
one of originally proposed methods which were all removed. I didn't
change the method name because I wanted to avoid the famous naming
confusion -- Time vs Date. That is, Calendar.getTime() returns a Date.
Masayoshi
More information about the threeten-dev
mailing list