Java Instant Create getInstantOfEpoch(long seconds)

Here you can find the source of getInstantOfEpoch(long seconds)

Description

gibt ein Instant zum Zeitstempel zurueck

License

Open Source License

Parameter

Parameter Description
seconds Zeitstempel

Declaration

public static Instant getInstantOfEpoch(long seconds) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.time.Instant;

public class Main {
    /**//from   ww  w  . j  a  v a2s  . c o m
     * gibt ein Instant zum Zeitstempel zurueck
     *
     * @param seconds Zeitstempel
     * @return
     */
    public static Instant getInstantOfEpoch(long seconds) {

        return Instant.ofEpochSecond(seconds, 0);
    }
}

Related

  1. deserializeToInstant(String date)
  2. end(String msg, long amount, Instant start)
  3. getEarliestInstant()
  4. getInstant(final Calendar calendar)
  5. getInstant(LocalDate localDate)
  6. getThisMonthBeginInstant()
  7. instant(int _y, int _m, int _d, int _H, int _M, int _S)
  8. toInstant(BigDecimal value)