Here you can find the source of longTOLocalDateTime(long minDate)
public static LocalDateTime longTOLocalDateTime(long minDate)
//package com.java2s; //License from project: Apache License import java.time.LocalDateTime; import java.time.ZoneOffset; public class Main { public static LocalDateTime longTOLocalDateTime(long minDate) { LocalDateTime time = LocalDateTime.ofEpochSecond(minDate, 0, ZoneOffset.UTC); return time; }//from ww w . j a va2 s .c om }