Java LocalDateTime Create getLocalDateTimeFromMillis(long millis)

Here you can find the source of getLocalDateTimeFromMillis(long millis)

Description

Shorthand method to return a LocalDateTime from 'millis since longAgo'.

License

BSD License

Declaration

public static LocalDateTime getLocalDateTimeFromMillis(long millis) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

import java.time.*;

public class Main {
    /**//from  w ww. java  2s  .c o  m
     * Shorthand method to return a LocalDateTime from 'millis since longAgo'.
     */
    public static LocalDateTime getLocalDateTimeFromMillis(long millis) {
        return LocalDateTime.from(Instant.ofEpochMilli(millis));
    }
}

Related

  1. asLocalDateTime(Date date)
  2. asLocalDateTime(Date date)
  3. getLocalDateTime(Date datetime, TimeZone timeZone)
  4. getLocalDateTimeFromEpochMilli(long epochMillis)
  5. getLocalDateTimeFromMillis(final long millis)
  6. localDateTime(Date date, Clock clock)
  7. localDateTimeOf(final String value)
  8. toLocalDateTime(java.util.Date d)
  9. toLocalDateTime(long systemMillis)