MySQL TIME_FORMAT() Function
Definition and Usage
The TIME_FORMAT() function formats a time by a specified format.
Syntax
TIME_FORMAT(time, format)
Parameter Values
| Parameter | Description | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| time | Required. The time to be formatted | ||||||||||||||||||||||
| format | Required. The format to use. Can be one or a
combination of the following:
|
Technical Details
| Works in: | From MySQL 4.0 |
|---|