HUMAN_READABLE_SECONDS

All functions > DATE AND TIME > HUMAN_READABLE_SECONDS

Returns a human readable string from the given number of seconds.

Signatures

Returns: A human-readable string representation of the duration

HUMAN_READABLE_SECONDS(seconds: BIGINT) → INTERVAL
sql
ParameterTypeRequiredDescription
secondsBIGINTYesThe number of seconds to convert

Notes

  • Converts seconds into a readable interval string
  • Accepts BIGINT or DOUBLE values
  • Useful for displaying durations in a user-friendly format
  • Output format depends on the database engine
  • Handles large time spans (days, months, years)
Last update at: 2026/03/03 16:47:38
Last updated: 2026-03-03 16:48:19