export const nowIso = () => new Date().toISOString();

export const secondsBetween = (startIso: string, endIso: string) => {
  const start = new Date(startIso).getTime();
  const end = new Date(endIso).getTime();
  return Math.max(0, (end - start) / 1000);
};
