Re: off topic: LocalDate

2014-11-09 Thread Tom Eugelink

Starting point is a LocalDate.


On 9-11-2014 08:29, oma...@free.fr wrote:

Date date = Date.from(Instant.now());

- Mail original -
De: Tom Eugelink t...@tbee.org
À: openjfx-dev@openjdk.java.net
Envoyé: Vendredi 7 Novembre 2014 22:49:01
Objet: off topic: LocalDate

I'm trying to do some refactoring on the Agenda control; its skin class is 
quite large. I figured I also switch to use the new Java 8 date time API, 
because it is much easier than Calendar. At least... That is what I expect 
after using JodaTime a lot in my projects.

But, ah, does anyone know how we got from JodaTime's localDate.toDate() to Java 8's 
Date.from(localDate.atZone(ZoneId.systemDefault()).toInstant())???




Re: off topic: LocalDate

2014-11-08 Thread omathe
Date date = Date.from(Instant.now());

- Mail original -
De: Tom Eugelink t...@tbee.org
À: openjfx-dev@openjdk.java.net
Envoyé: Vendredi 7 Novembre 2014 22:49:01
Objet: off topic: LocalDate

I'm trying to do some refactoring on the Agenda control; its skin class is 
quite large. I figured I also switch to use the new Java 8 date time API, 
because it is much easier than Calendar. At least... That is what I expect 
after using JodaTime a lot in my projects.

But, ah, does anyone know how we got from JodaTime's localDate.toDate() to 
Java 8's Date.from(localDate.atZone(ZoneId.systemDefault()).toInstant())???


off topic: LocalDate

2014-11-07 Thread Tom Eugelink

I'm trying to do some refactoring on the Agenda control; its skin class is 
quite large. I figured I also switch to use the new Java 8 date time API, 
because it is much easier than Calendar. At least... That is what I expect 
after using JodaTime a lot in my projects.

But, ah, does anyone know how we got from JodaTime's localDate.toDate() to Java 8's 
Date.from(localDate.atZone(ZoneId.systemDefault()).toInstant())???