Oihana PHP Arango

dateMillisecond.php

Table of Contents

Functions

dateMillisecond()  : string
Returns the millisecond (0–999) of a given date.

Functions

dateMillisecond()

Returns the millisecond (0–999) of a given date.

dateMillisecond([int|string|null $date = null ]) : string

Constructs an AQL expression in the format:

DATE_MILLISECOND(date)

where date can be a numeric timestamp or an ISO 8601 date string.

Parameters
$date : int|string|null = null

Numeric timestamp or ISO 8601 date string. Defaults to DATE_NOW() if null.

Tags
example
echo dateMillisecond('2025-10-08T12:34:56.789Z');
// Produces: DATE_MILLISECOND("2025-10-08T12:34:56.789Z")

echo dateMillisecond();
// Produces: DATE_MILLISECOND(DATE_NOW())
see
https://docs.arangodb.com/devel/aql/functions/date/#date_millisecond
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the millisecond.

On this page

Search results