Here you can find the source of toEpochMillSeconds(ZonedDateTime time)
public static long toEpochMillSeconds(ZonedDateTime time)
//package com.java2s; //License from project: Apache License import java.time.ZonedDateTime; public class Main { public static long toEpochMillSeconds(ZonedDateTime time) { long seconds; if (time != null) seconds = time.toEpochSecond(); else/* www. j ava 2s .co m*/ seconds = 0; return seconds; } }