Example usage for java.time OffsetTime ofInstant

List of usage examples for java.time OffsetTime ofInstant

Introduction

In this page you can find the example usage for java.time OffsetTime ofInstant.

Prototype

public static OffsetTime ofInstant(Instant instant, ZoneId zone) 

Source Link

Document

Obtains an instance of OffsetTime from an Instant and zone ID.

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.ofInstant(Instant.now(), ZoneId.systemDefault());

    System.out.println(m);/*ww w .  j  a va  2s. co  m*/

}