FORMAT_PICO_TIME
Format a time in picoseconds. This function converts a numeric picosecond value into a human-readable string with units like ps, ns, us, ms, s, m, h, or d.
Last updated
Was this helpful?
Format a time in picoseconds. This function converts a numeric picosecond value into a human-readable string with units like ps, ns, us, ms, s, m, h, or d.
Last updated
Was this helpful?
Was this helpful?
SELECT
FORMAT_PICO_TIME(43) AS ps,
FORMAT_PICO_TIME(4321) AS ns,
FORMAT_PICO_TIME(43211234) AS us,
FORMAT_PICO_TIME(432112344321) AS ms,
FORMAT_PICO_TIME(43211234432123) AS s,
FORMAT_PICO_TIME(432112344321234) AS m,
FORMAT_PICO_TIME(4321123443212345) AS h,
FORMAT_PICO_TIME(432112344321234545) AS d;
+--------+---------+----------+-----------+---------+----------+--------+--------+
| ps | ns | us | ms | s | m | h | d |
+--------+---------+----------+-----------+---------+----------+--------+--------+
| 43 ps | 4.32 ns | 43.21 us | 432.11 ms | 43.21 s | 7.20 min | 1.20 h | 5.00 d |
+--------+---------+----------+-----------+---------+----------+--------+--------+