Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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());
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #gmt #zoneid
ADD COMMENT
Topic
Name
9+9 =