start_timestamp and end_timestamp by the indicated unit.
Syntax
Parameters
| Parameter | Description |
|---|---|
<unit> | A TEXT literal specifying the time unit. Must be one of microsecond, millisecond, second, minute, hour, day, week, month, quarter, year, decade, century, or millennium. |
<start_timestamp> | A value expression evaluating to a TIMESTAMP or TIMESTAMPTZ value. |
<end_timestamp> | A value expression evaluating to a TIMESTAMP or TIMESTAMPTZ value. |
Return Type
BIGINT