export function durationMsBetween(start, end) {
    if (!start || !end)
        return undefined;
    const startMs = Date.parse(start);
    const endMs = Date.parse(end);
    if (!Number.isFinite(startMs) || !Number.isFinite(endMs) || endMs < startMs)
        return undefined;
    return endMs - startMs;
}
//# sourceMappingURL=time.js.map