MCPcopy
hub / github.com/alseambusher/crontab-ui / backupDate

Function backupDate

crontab.js:199–202  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

197 .filter((file) => file.indexOf('backup') === 0);
198
199 const backupDate = (name) => {
200 const t = name.split('backup')[1];
201 return new Date(t.substring(0, t.length - 3)).valueOf();
202 };
203
204 backups.sort((a, b) => backupDate(b) - backupDate(a));
205 return backups;

Callers 1

crontab.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected