dateTimeStamp.php
Table of Contents
Functions
- dateTimeStamp() : string
- Converts a given date into a numeric timestamp with millisecond precision.
Functions
dateTimeStamp()
Converts a given date into a numeric timestamp with millisecond precision.
dateTimeStamp([int|string|null $date = null ]) : string
Constructs an AQL expression in the format:
DATE_TIMESTAMP(date)
where date can be a numeric timestamp or an ISO 8601 date string.
The result is a numeric timestamp in milliseconds. To obtain seconds, divide the result by 1000.
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 timestamp.