RFR JDK-8133079 LocalDate/LocalTime ofInstant()

Stephen Colebourne jodastephen at gmail.com
Tue Sep 8 18:53:16 UTC 2015

Anyone like to take this on please?
On 28 Aug 2015 00:07, "Stephen Colebourne" <scolebourne at joda.org> wrote:

> External question sites indicate that users have difficulty converting
> between java.util.Date and LocalDate, and also between Instant and
> LocalDate/LocalTime. This user difficulty can be resolved with some
> additional methods.
> Currently, the following methods exist:
>  ZonedDateTime.ofInstant(Instant, ZoneId);
>  OffsetDateTime.ofInstant(Instant, ZoneId);
>  LocalDateTime.ofInstant(Instant, ZoneId);
>  OffsetTime.ofInstant(Instant, ZoneId);
> This enhancement proposes to add the same method to LocalDate and
> LocalTime. It can reasonably be argued this was a simple oversight in
> the original development.
> Diff attached to the JIRA:
> https://bugs.openjdk.java.net/browse/JDK-8133079
> Would also appreciate a reviewer to ensure that the code and tests
> pass OK (as opposed to my best efforts on a very dubious
> Windows/Eclipse/JDK8 setup)
> Stephen

More information about the core-libs-dev mailing list