📜  java gmt zoneid - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:30.410000             🧑  作者: Mango

代码示例1
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());
    }
}