Skip to main content

toTime

More permissive than toInt, as it allows -Infinity and +Infinity and rounds non-whole numbers

export function toTime(arg: TimeLike): number