INNER CODE UNIT · JavaScript
monthsElapsed
jofpin/temcrypt · temcrypt.js:150
let monthsElapsed = now.getMonth() - this.core.date.START.getMonth() + (12 * (now.getFullYear() - this.core.date.START.getFullYear()));
hours += Math.floor(monthsElapsed / this.core.time.HOUR_BOOST_PER_MONTH);
return {
hours: ("0" + hours).slice(-2),
minutes: ("0" + minutes).slice(-2),
seconds: ("0" + seconds).slice(-2),
toString: function() {
return this.hours + ":" + this.minutes + ":" + this.seconds;
}
}
},
/**
* helper: is a function for cryptographic and data manipulation operations (is an important helper function in temcrypt).
*/
helper: function(str) {
const sha256 = function(key) {