For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

TIMESTAMP_TRUNC() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Truncates a timestamp to the specified precision.

Syntax​

TIMESTAMP_TRUNC(unit, timestamp)

Parameters​

ParameterDescriptionData TypeRequired
unitDate or time part (for example day, month, year)StringYes
timestampTimestamp valueTimestampYes

Example​

SELECT
TIMESTAMP_TRUNC('hour', created_at)
FROM
rippling.employee.Employee
LIMIT
5;