Example usage for java.time ZoneId from

List of usage examples for java.time ZoneId from

Introduction

In this page you can find the example usage for java.time ZoneId from.

Prototype

public static ZoneId from(TemporalAccessor temporal) 

Source Link

Document

Obtains an instance of ZoneId from a temporal object.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZoneId z = ZoneId.from(ZonedDateTime.now());

    System.out.println(z);
}