Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LocalDateTime getMillis from epoch

drenda81May 26 2014 — edited May 26 2014

Hi, I'm using new LocalDate and LocalDateTime in my app. But I can't figure out how to get millis from epoch. I see that LocalDateTime inherits toEpochSecond() from the interface ChronoZonedDateTime, but unfortunally the method has default access type so I can't use this method. So, Which is the correct way to get millis from epoch in new LocalDateTime? Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 23 2014
Added on May 26 2014
1 comment
3,091 views