Here you can find the source of fromLocalDateTime(LocalDateTime _ldt)
public static final Instant fromLocalDateTime(LocalDateTime _ldt)
//package com.java2s; //License from project: Open Source License import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneOffset; public class Main { public static final ZoneOffset localZoneOffset = ZoneOffset.UTC; /**//from w w w .j av a 2s.c om * Get LocalDateTime as Instant for defined localZone <br> * */ public static final Instant fromLocalDateTime(LocalDateTime _ldt) { return _ldt.toInstant(localZoneOffset); } }