Oihana PHP Arango

dateIsoWeekYear.php

Table of Contents

Functions

dateIsoWeekYear()  : string
Returns the ISO week-numbering year of a given date.

Functions

dateIsoWeekYear()

Returns the ISO week-numbering year of a given date.

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

Constructs an AQL expression in the format:

DATE_ISOWEEKYEAR(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 dateIsoWeekYear('2025-10-08T12:34:56Z');
// Produces: DATE_ISOWEEKYEAR("2025-10-08T12:34:56Z")

echo dateIsoWeekYear();
// Produces: DATE_ISOWEEKYEAR(DATE_NOW())
see
https://www.arangodb.com/docs/stable/aql/functions-date.html#date_isoweekyear
since
1.0.0
author

Marc Alcaraz

Return values
string

The AQL expression returning the ISO week-numbering year.

On this page

Search results