Documentation Home
MySQL 5.7 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 38.2Mb
PDF (A4) - 38.2Mb
PDF (RPM) - 37.1Mb
HTML Download (TGZ) - 10.1Mb
HTML Download (Zip) - 10.2Mb
HTML Download (RPM) - 8.9Mb
Man Pages (TGZ) - 206.2Kb
Man Pages (Zip) - 314.5Kb
Info (Gzip) - 3.5Mb
Info (Zip) - 3.5Mb
Excerpts from this Manual The format_time() Function

Given a Performance Schema latency or wait time in picoseconds, converts it to human-readable format and returns a string consisting of a value and a units indicator. Depending on the size of the value, the units part is ns (nanoseconds), us (microseconds), ms (milliseconds), s (seconds), m (minutes), h (hours), d (days), or w (weeks).

  • picoseconds TEXT: The picoseconds value to format.

Return Value

A TEXT value.

mysql> SELECT format_time(3501), format_time(188732396662000);
| format_time(3501) | format_time(188732396662000) |
| 3.50 ns           | 3.15 m                       |

User Comments
Sign Up Login You must be logged in to post a comment.