Example usage for java.time ZoneOffset getTotalSeconds

List of usage examples for java.time ZoneOffset getTotalSeconds

Introduction

In this page you can find the example usage for java.time ZoneOffset getTotalSeconds.

Prototype

public int getTotalSeconds() 

Source Link

Document

Gets the total zone offset in seconds.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneOffset z = ZoneOffset.UTC;
    int t = z.getTotalSeconds();
    System.out.println(t);//from   w  w  w.j av a  2 s .  com
}