Java LocalDate Calculate localDate2ms(final LocalDate ld)

Here you can find the source of localDate2ms(final LocalDate ld)

Description

LocalDate to ms.

License

Open Source License

Parameter

Parameter Description
ld a parameter

Return

ms

Declaration

public static long localDate2ms(final LocalDate ld) 

Method Source Code

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

import java.time.LocalDate;

import java.time.ZoneOffset;

public class Main {
    /**/*from w ww  .j  a va2 s .  c  o m*/
     * LocalDate to ms.
     * @param ld
     * @return ms
     */
    public static long localDate2ms(final LocalDate ld) {
        return ld.atStartOfDay().toEpochSecond(ZoneOffset.ofHours(9)) * 1000L;
    }
}

Related

  1. isOverlapping(LocalDate firstStartDate, LocalDate firstEndDate, LocalDate secondStartDate, LocalDate secondEndDate)
  2. isValid(LocalDate ld1, LocalDate ld2, ZoneId zid, Predicate test)
  3. isWeekend(LocalDate date)
  4. isWorkDay(@Nonnull final LocalDate aDate)
  5. lastMonth(LocalDate date)
  6. LocalDateFromMilli(long value)
  7. localDateToSystemAdjustedStartOfDayDate(LocalDate d)
  8. max(ChronoLocalDate date1, ChronoLocalDate date2)
  9. medTime(LocalDate date, String text)