Oihana PHP Arango

dateSecond.php

Table of Contents

Functions

dateSecond()  : string
Returns the second of a given date.

Functions

dateSecond()

Returns the second of a given date.

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

Constructs an AQL expression in the format:

DATE_SECOND(date)

where date can be a numeric timestamp or an ISO 8601 date string. The result is a number representing the second (0–59).

Parameters
$date : int|string|null = null

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

Tags
example
echo dateSecond('2025-10-08T12:34:56Z');
// Produces: DATE_SECOND("2025-10-08T12:34:56Z")

echo dateSecond();
// Produces: DATE_SECOND(DATE_NOW())
see
https://docs.arangodb.com/devel/aql/functions/date/#date_second
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the second as a number.

On this page

Search results