Java LocalDateTime Calculate getTimePart(final LocalDateTime dateTime)

Here you can find the source of getTimePart(final LocalDateTime dateTime)

Description

get Time Part

License

Open Source License

Parameter

Parameter Description
dateTime Datum-/Zeit-Wert

Return

Zeitanteil

Declaration

public static LocalTime getTimePart(final LocalDateTime dateTime) 

Method Source Code

//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();
    }
}

Related

  1. dateTimeToOleMinutes(LocalDateTime datetime)
  2. dayDuration(LocalDateTime startDateTime, LocalDateTime endDateTime)
  3. fastDateTimeWriteHours(LocalDateTime localDateTime)
  4. getShiftResult(ImmutableMap timexUnitMap, LocalDateTime reference, boolean future)
  5. getStartWeekOfMonth(@Nonnull final LocalDateTime aDT, @Nonnull final Locale aLocale)
  6. getZonedDateTime(LocalDateTime dateTime, TimeZone timeZone)
  7. isAfter(LocalDateTime endDateTime, LocalDateTime startDateTime)
  8. isAfterNow(LocalDateTime pValidUntil)
  9. isBefore(LocalDateTime dateTime1, LocalDateTime dateTime2)