java - Seconds since epoch to LocalDate in Joda -


how convert seconds past epoch localdate in joda?

e.g.

long seconds  = 1468608443l; ? localdate.fromseconds(seconds); // not exist 

what exist fromdatefields , fromcalendar.

is necessary convert seconds 1 of these 2 things first?

alternately can make instant with

instant instant = new instant(seconds * 1000); 

then try converting date or datetime input localdate. standard way accomplish this?

best method far:

instant instant = new instant(seconds * 1000); localdate date = instant.todatetime(some_time_zone).tolocaldate(); 

Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -