Java Instant Calculate getPeriodInstant(LocalDate localDate)

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

Description

get Period Instant

License

Open Source License

Declaration

public static Instant getPeriodInstant(LocalDate localDate) 

Method Source Code

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

import java.time.*;

public class Main {
    public static Instant getPeriodInstant(LocalDate localDate) {
        LocalDateTime localDateTime = localDate.atStartOfDay();
        return localDateTime.toInstant(ZoneOffset.UTC);
    }/*from   w  ww .  j a  v a2 s. c om*/
}

Related

  1. convertInstantToDotNetTicks(Instant instant)
  2. convertToUserTimeZone(Instant timeInSystem, ZoneId userZoneId)
  3. dateOf(final Instant time)
  4. epochToInstant(long epochMilliSecond)
  5. getNquadsFile(final File dir, final Instant time)
  6. getSnowflakeFromTimestamp(Instant date)
  7. isEqualOrAfterNow(Instant now, Instant instant)
  8. maxInstant(Instant v1, Instant v2)
  9. nanos(Instant instant)