SECOND
Description
Extracts the second (0–59) from a Datetime value.
Syntax
SECOND(datetime) -> Integer
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| datetime | Datetime | Yes | The Datetime value from which the second is extracted. |
Example
SECOND(NOW())
-- Returns 22 (if now = 2024-09-18T15:25:22.418Z).