Java ZonedDateTime Create toZonedDateTime(long systemMillis)

Here you can find the source of toZonedDateTime(long systemMillis)

Description

Return the system millis time as a ZonedDateTime.

License

Apache License

Declaration

public static Object toZonedDateTime(long systemMillis) 

Method Source Code

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

import java.time.Instant;

import java.time.ZoneId;
import java.time.ZonedDateTime;

public class Main {
    /**/*from   w w w . j  av  a  2s .co  m*/
     * Return the system millis time as a ZonedDateTime.
     */
    public static Object toZonedDateTime(long systemMillis) {
        return ZonedDateTime.ofInstant(Instant.ofEpochMilli(systemMillis), ZoneId.systemDefault());
    }
}

Related

  1. toZonedDateTime(@Nullable Date date, @Nullable TimeZone zone)
  2. toZonedDateTime(Date utilDate)
  3. toZonedDateTime(long epochSeconds)
  4. toZonedDateTime(Object cell)
  5. zonedDateTime(String date, ZoneId zoneId)
  6. zonedDateTimeOf(final ZonedDateTime time)
  7. zonedDateTimeToYyyyMMdd(LocalDate localDate)