FORMAT_PICO_TIME
MariaDB starting with 11.0.2
Introduced in MariaDB 11.0.2
Syntax
Description
Given a time in picoseconds, returns a human-readable time value and unit indicator. Resulting unit is dependent on the length of the argument, and can be:
ps - picoseconds
ns - nanoseconds
us - microseconds
ms - milliseconds
s - seconds
min - minutes
h - hours
d - days
With the exception of results under one nanosecond, which are not rounded and are represented as whole numbers, the result is rounded to 2 decimal places, with a minimum of 3 significant digits.
Returns NULL if the argument is NULL.
This function is very similar to the Sys Schema FORMAT_TIME function, but with the following differences:
Represents minutes as
min
rather thanm
.Does not represent weeks.
Examples
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?