HUMAN_READABLE_SECONDS

All functions > DATE_AND_TIME > HUMAN_READABLE_SECONDS

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

Syntax

HUMAN_READABLE_SECONDS(seconds)
sql

Arguments

ParameterTypeRequiredDescription
secondsBIGINTYesThe number of seconds to convert

Returns

A human-readable string representation of the duration

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: 2025/10/13 10:23:46