INNER CODE UNIT · JavaScript

seconds

jofpin/temcrypt · temcrypt.js:149

            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).
         */
        helper: function(str) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…