Example usage for java.time ZonedDateTime toLocalTime

List of usage examples for java.time ZonedDateTime toLocalTime

Introduction

In this page you can find the example usage for java.time ZonedDateTime toLocalTime.

Prototype

@Override 
public LocalTime toLocalTime() 

Source Link

Document

Gets the LocalTime part of this date-time.

Usage

From source file:Main.java

public static void main(String[] args) {
    ZonedDateTime dateTime = ZonedDateTime.now();
    LocalTime l = dateTime.toLocalTime();
    System.out.println(l);/*from   ww  w  .  j av  a 2 s  .  c  o m*/
}