Answers for "java localdatetime to utc milliseconds from"

0

java convert LocalDateTime to long

public long createTimestamp() {
        ZoneId zoneId = ZoneId.systemDefault();
        return LocalDateTime.now().atZone(zoneId).toEpochSecond();
    }
Posted by: Guest on July-24-2020

Code answers related to "java localdatetime to utc milliseconds from"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language