vault backup: 2025-02-03 07:04:13

This commit is contained in:
2025-02-03 07:04:14 +01:00
parent e158386068
commit 7909836706
2019 changed files with 59 additions and 26816 deletions

View File

@@ -1,15 +0,0 @@
/**
* Calculates the number of days since a given date.
*
* @param {string} day_string - The start date in "YYYY-MM-DD" format.
* @returns {number} The number of days since the start date.
*/
function days_since (day_string) {
var start_date = moment(day_string, "YYYY-MM-DD");
var today = moment();
var duration = moment.duration(today.diff(start_date));
var days_since = parseInt(duration.asDays());
return days_since;
}
module.exports = days_since;