Here you can find the source of dateTimeToOleMinutes(LocalDateTime datetime)
public static long dateTimeToOleMinutes(LocalDateTime datetime)
//package com.java2s; //License from project: Open Source License import java.time.Duration; import java.time.LocalDateTime; public class Main { public static final LocalDateTime OLE_AUTOMATION_TIME_START = LocalDateTime.of(1899, 12, 30, 0, 0); public static long dateTimeToOleMinutes(LocalDateTime datetime) { return Duration.between(OLE_AUTOMATION_TIME_START, datetime).toMinutes(); }// w w w. j av a 2 s .c o m }