Java Instant Create getInstant(LocalDate localDate)

Here you can find the source of getInstant(LocalDate localDate)

Description

get Instant

License

Apache License

Declaration

public static Instant getInstant(LocalDate localDate) 

Method Source Code

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

import java.time.Instant;
import java.time.LocalDate;

import java.time.ZoneId;

public class Main {
    private static final ZoneId DEFAULT_ZONE_ID = ZoneId.of("Asia/Singapore");

    public static Instant getInstant(LocalDate localDate) {
        return localDate.atStartOfDay().atZone(DEFAULT_ZONE_ID).toInstant();
    }/*from   www.  j a  v a2 s . co  m*/
}

Related

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