isFuture.php
Table of Contents
Functions
- isFuture() : bool
- Tells whether a date is strictly in the future.
Functions
isFuture()
Tells whether a date is strictly in the future.
isFuture(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 after $now, false otherwise.