Java LocalDateTime to toMinuteCount(LocalDateTime ldt)

Here you can find the source of toMinuteCount(LocalDateTime ldt)

Description

to Minute Count

License

Apache License

Declaration

private static long toMinuteCount(LocalDateTime ldt) 

Method Source Code


//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*/
}

Related

  1. toDateHeader(LocalDateTime dt)
  2. toDateUTCFromJST(LocalDateTime dateTime)
  3. toJava8(org.joda.time.LocalDateTime x)
  4. toJsonDate(LocalDateTime date)
  5. tokenExpired(LocalDateTime expiryDate)
  6. toString(LocalDateTime time)
  7. toStringIfPresent(LocalDateTime dateTime)
  8. toUtilDate(LocalDateTime localDateTime)
  9. validateTime(LocalDateTime timestamp)