time constants implemented as global file

This commit is contained in:
Luis Fernando Molina committed 2020-11-27 14:54:52 +01:00
1 parent 658dc4714a
commit 09f043fb51
13 files changed
+44 -33

No files matched your search

+6
View File
@@ -337,6 +337,12 @@
"propertyName": "standardResponses",
"functionName": "newSuperalgosGlobalsStandardResponses",
"fileName": "StandardResponses.js"
},
{
"name": "Time Constants",
"propertyName": "timeConstants",
"functionName": "newSuperalgosGlobalsTimeConstants",
"fileName": "TimeConstants.js"
}
],
"functionLibraries": [
@@ -0,0 +1,10 @@
exports.newSuperalgosGlobalsTimeConstants = function () {
/* Callbacks default responses. */
let thisObject = {
ONE_YEAR_IN_MILISECONDS: 365 * 24 * 60 * 60 * 1000,
ONE_DAY_IN_MILISECONDS: 24 * 60 * 60 * 1000,
ONE_MIN_IN_MILISECONDS: 60 * 1000
}
return thisObject
}