Here you can find the source of getTimePart(final LocalDateTime dateTime)
Parameter | Description |
---|---|
dateTime | Datum-/Zeit-Wert |
public static LocalTime getTimePart(final LocalDateTime dateTime)
//package com.java2s; /*//from w ww . j a v a 2 s.c o m * Copyright 2014-2015 Christian Raue * MIT License http://opensource.org/licenses/mit-license.php */ import java.time.LocalDateTime; import java.time.LocalTime; public class Main { /** * @param dateTime Datum-/Zeit-Wert * @return Zeitanteil */ public static LocalTime getTimePart(final LocalDateTime dateTime) { return dateTime.toLocalTime(); } }