Example usage for java.time LocalTime getLong

List of usage examples for java.time LocalTime getLong

Introduction

In this page you can find the example usage for java.time LocalTime getLong.

Prototype

@Override
public long getLong(TemporalField field) 

Source Link

Document

Gets the value of the specified field from this time as a long .

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalTime l = LocalTime.now();

    System.out.println(l.getLong(ChronoField.MINUTE_OF_HOUR));
}