Example usage for java.time OffsetTime get

List of usage examples for java.time OffsetTime get

Introduction

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

Prototype

@Override 
public int get(TemporalField field) 

Source Link

Document

Gets the value of the specified field from this time as an int .

Usage

From source file:Main.java

public static void main(String[] args) {
    OffsetTime m = OffsetTime.now();
    int z = m.get(ChronoField.HOUR_OF_DAY);
    System.out.println(z);/*from   www  . jav a 2  s. com*/

}