INNER CODE UNIT · JavaScript
hours
jofpin/temcrypt · temcrypt.js:147
let hours = Math.floor(compared / (1000 * 60 * 60) % 24);
let minutes = Math.floor(compared / (1000 * 60) % 60);
let seconds = Math.floor(compared / 1000 % 60);
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).