toISO
function toISO(parts, showSeconds): string | null;HH:mm or HH:mm:ss for a complete, real time; null otherwise.
Always 24-hour and always zero-padded, whatever the field displays. One canonical format means a value can be compared, stored and sorted without knowing which locale produced it.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
parts | TimeParts |
showSeconds | boolean |
Returns
Section titled “Returns”string | null