isPast
Calendar
stable
Returns true when the given Date sits in the past relative to the current moment (Date.now()). Includes earlier hours of today. Used to fade or disable past events in calendar and agenda views.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- daterequisDate
- The date to compare against the current timestamp. The comparison is millisecond-accurate using Date.now().
API
Valeur de retour
La valeur retournée par cet util.
- true when date.getTime() < Date.now(); false for future dates and the current moment.
Usage
Exemples
Extraits de code prêts à coller.
Checking whether a date is in the past