vault backup: 2025-02-03 08:29:48

This commit is contained in:
2025-02-03 08:29:48 +01:00
parent 7909836706
commit ad227f2d69
2018 changed files with 27268 additions and 46 deletions

Binary file not shown.

15
Scripts/days_since.js Normal file
View File

@@ -0,0 +1,15 @@
/**
* 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;