Here you can find the source of toZonedDateTime(long epochSeconds)
public static ZonedDateTime toZonedDateTime(long epochSeconds)
//package com.java2s; //License from project: Apache License import java.time.ZonedDateTime; import java.time.Instant; import java.time.ZoneId; public class Main { public static ZonedDateTime toZonedDateTime(long epochSeconds) { Instant instant = Instant.ofEpochSecond(epochSeconds); ZonedDateTime datetime = ZonedDateTime.ofInstant(instant, ZoneId.systemDefault()); return datetime; }//w w w. j av a2s . c o m }