compareISO
function compareISO(a, b): number;Chronological comparison, done as a string comparison.
Correct because the format is fixed-width and big-endian. HH:mm and
HH:mm:ss are compared on their shared prefix, so a bound given without
seconds still orders correctly against a value that has them.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
a | string |
b | string |
Returns
Section titled “Returns”number