Answers for "java zoneid.of() gmt"

0

java gmt zoneid

import java.time.Instant;
import java.time.ZoneId;

public class Main {
    public static void main(String args[]) {
        System.out.println(ZoneId.of("Etc/UTC").getRules().getOffset(Instant.now()).getTotalSeconds());
    }
}
Posted by: Guest on May-28-2021

Code answers related to "java zoneid.of() gmt"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language