Files
zerobyte/app/server/utils/snapshots.ts
Nico 7ebce1166b feat: expand snapshot details with additional info (#505)
* feat: extend snapshot details with more info

Closes #385

* refactor: centralize restic backup schemas

* refactor: pr feedbacks
2026-02-12 18:25:21 +01:00

5 lines
220 B
TypeScript

export function getSnapshotDuration(summary?: { backup_start: string; backup_end: string }): number {
if (!summary) return 0;
return new Date(summary.backup_end).getTime() - new Date(summary.backup_start).getTime();
}