Skip
Arish's avatar

113. TIME Function


TIME Function

Extracts time from datetime.

sql
1SELECT TIME('2024-03-15 14:30:00');
2-- Returns: 14:30:00
3
4SELECT TIME('now');
5-- Returns: current time

Example

sql
1SELECT name, TIME(login_time) FROM users;