yesterday.php
Table of Contents
Functions
- yesterday() : string
- Return the date corresponding to "yesterday" based on the given date or the current date.
Functions
yesterday()
Return the date corresponding to "yesterday" based on the given date or the current date.
yesterday([int|string|null $date = null ]) : string
Constructs an AQL expression equivalent to:
DATE_SUBTRACT(date, 1, "day")
If no date is provided, the current date (from DATE_NOW()) is used as the reference point.
Parameters
- $date : int|string|null = null
-
Numeric timestamp or ISO 8601 date string. Defaults to
DATE_NOW()if null.
Tags
Return values
string —The AQL expression returning the ISO 8601 string for the date of yesterday.