isPast.php
Table of Contents
Functions
- isPast() : bool
- Tells whether a date is strictly in the past.
Functions
isPast()
Tells whether a date is strictly in the past.
isPast(DateTimeInterface $date[, DateTimeInterface|null $now = null ]) : bool
Parameters
- $date : DateTimeInterface
-
The date to test.
- $now : DateTimeInterface|null = null
-
The reference "now". Defaults to the current date/time.
Tags
Return values
bool —true if $date is strictly before $now, false otherwise.