Rxova
Skip to content

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.

ParameterType
partsTimeParts
showSecondsboolean

string | null