Skeudenn / main/db/backup-service / isBackupDue
Function: isBackupDue() ​
isBackupDue(
lastBackupAt,intervalDays,now?):boolean
Defined in: src/main/db/backup-service.ts:111
Whether a scheduled copy is due: the interval is on (1 to 31 days) and the last copy (ISO date, empty when none) is at least that old. An unreadable date counts as none, a date in the future as just made.
Parameters ​
lastBackupAt ​
string
intervalDays ​
number
now? ​
Date = ...
Returns ​
boolean