dateHour.php
Table of Contents
Functions
- dateHour() : string
- Returns the hour of a given date.
Functions
dateHour()
Returns the hour of a given date.
dateHour([int|string|null $date = null ]) : string
Constructs an AQL expression in the format:
DATE_HOUR(date)
where date can be a numeric timestamp or an ISO 8601 date string.
The result is a number representing the hour (0–23).
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 hour as a number.