Java LocalDateTime Calculate dateTimeToOleMinutes(LocalDateTime datetime)

Here you can find the source of dateTimeToOleMinutes(LocalDateTime datetime)

Description

date Time To Ole Minutes

License

Open Source License

Declaration

public static long dateTimeToOleMinutes(LocalDateTime datetime) 

Method Source Code

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

Related

  1. clampDateTimeWithMaxAllowedHour(LocalDateTime dateTime, int maxAllowedHour)
  2. convertDatabaseDateToUSTime(LocalDateTime databaseDate)
  3. converterZoneDatetimeToLocalDateTime( final String date)
  4. currentTimeMillis(LocalDateTime ldt)
  5. DateTime2LocalDateTime(Date datetime)
  6. dayDuration(LocalDateTime startDateTime, LocalDateTime endDateTime)
  7. fastDateTimeWriteHours(LocalDateTime localDateTime)
  8. getShiftResult(ImmutableMap timexUnitMap, LocalDateTime reference, boolean future)
  9. getStartWeekOfMonth(@Nonnull final LocalDateTime aDT, @Nonnull final Locale aLocale)