Example usage for java.time OffsetDateTime toOffsetTime

List of usage examples for java.time OffsetDateTime toOffsetTime

Introduction

In this page you can find the example usage for java.time OffsetDateTime toOffsetTime.

Prototype

public OffsetTime toOffsetTime() 

Source Link

Document

Converts this date-time to an OffsetTime .

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetDateTime o = OffsetDateTime.MAX;
    OffsetTime of = o.toOffsetTime();
    System.out.println(of);/*from   www .jav a  2 s.co  m*/
}