Here you can find the source of toZonedDateTime(long systemMillis)
public static Object toZonedDateTime(long systemMillis)
//package com.java2s; //License from project: Apache License import java.time.Instant; import java.time.ZoneId; import java.time.ZonedDateTime; public class Main { /**/*from w w w . j av a 2s .co m*/ * Return the system millis time as a ZonedDateTime. */ public static Object toZonedDateTime(long systemMillis) { return ZonedDateTime.ofInstant(Instant.ofEpochMilli(systemMillis), ZoneId.systemDefault()); } }