Here you can find the source of isOverdue(LocalDateTime dueTime)
Parameter | Description |
---|---|
dueTime | The due time to check against with the current system time. |
public static boolean isOverdue(LocalDateTime dueTime)
//package com.java2s; //License from project: Open Source License import java.time.LocalDateTime; public class Main { public static final LocalDateTime now = LocalDateTime.now(); /**/*from w w w . j a v a2 s . c o m*/ * Checks against system time if the provided dueTime is before system time. * * @param dueTime The due time to check against with the current system time. * @return Returns true if the provided dueTime is before system time. */ public static boolean isOverdue(LocalDateTime dueTime) { return dueTime.isBefore(LocalDateTime.now()); } }