Java Date Equal isLowerEqualDate(Date date)

Here you can find the source of isLowerEqualDate(Date date)

Description

is Lower Equal Date

License

LGPL

Declaration

public static boolean isLowerEqualDate(Date date) 

Method Source Code

//package com.java2s;
/*/*from  w w w  .  j a v a2 s  .co m*/
* Distributable under LGPL v3 license.
* See terms of license at https://github.com/Yunfeng/schotel/blob/master/LICENSE
*/

import java.util.Calendar;
import java.util.Date;

public class Main {

    public static boolean isLowerEqualDate(Date date) {
        long ms = date.getTime() - getCurDateTime().getTime();
        return ms <= 0;
    }

    public static Date getCurDateTime() {
        return Calendar.getInstance().getTime();
    }
}

Related

  1. hourEqual(Date date1, Date date2)
  2. isEqual(Date date1, Date date2)
  3. isEqualByDay(Date date1, Date date2)
  4. isEqualDate(Date date1, Date date2)
  5. isEqualField(int field, Date d1, Date d2)
  6. isSameDate(Date date, Date date1)
  7. isSameDate(Date date1, Date date2)
  8. isSameDate(Date pathDate, Date now)
  9. isSameDate(long var0, long var2)