Here you can find the source of toMinuteCount(LocalDateTime ldt)
private static long toMinuteCount(LocalDateTime ldt)
//package com.java2s; //License from project: Apache License import java.time.LocalDateTime; import java.time.ZoneOffset; public class Main { private static final ZoneOffset OFFSET = ZoneOffset.UTC; private static long toMinuteCount(LocalDateTime ldt) { return ldt.toInstant(OFFSET).getEpochSecond() / 60; }/*from www . j av a 2s. co m*/ }