is LocalDateTime Equal - Java java.time

Java examples for java.time:LocalDateTime

Description

is LocalDateTime Equal

Demo Code


//package com.java2s;

import java.time.LocalDateTime;

public class Main {
    public static boolean isEqual(LocalDateTime baseline, LocalDateTime than) {
        return baseline.compareTo(than) == 0;
    }//from  www . ja  va 2 s  .c  o  m
}

Related Tutorials