Skip to content

Formats a time value according to a format string.

func.time_format(<time>, <format>)
func.time_format('14:30:00', '%H hours %i minutes')
┌───────────────────────┐
│ '14 hours 30 minutes' │
└───────────────────────┘
TIME_FORMAT(<time>, <format>)
SELECT TIME_FORMAT('14:30:00', '%H hours %i minutes');
┌─────────────────────┐
│ 14 hours 30 minutes │
└─────────────────────┘