Here you can find the source of localDate2ms(final LocalDate ld)
Parameter | Description |
---|---|
ld | a parameter |
public static long localDate2ms(final LocalDate ld)
//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; } }