HOUR_GMT
Description
Extracts the hour (0–23) from a Datetime value, based on GMT.
Syntax
HOUR_GMT(datetime) -> Integer
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| datetime | Datetime | Yes | The Datetime value from which the hour is extracted. |
Example
HOUR_GMT(NOW())
-- Returns 15 (if now = 2024-09-18T15:25:22.418Z).