Here you can find the source of currentTimeMillis(LocalDateTime ldt)
public static long currentTimeMillis(LocalDateTime ldt)
//package com.java2s; // The MIT License (MIT) import java.time.LocalDateTime; import java.time.ZoneId; public class Main { public static long currentTimeMillis(LocalDateTime ldt) { return ldt.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli(); }// w w w. j a va 2 s. c om }