UNPKG

iwebapp

Version:
23 lines (18 loc) 472 B
// let testStr = "Hello world!"; // console.log(testStr); /* */ class TimerCount { constructor(timer) { this.timer = timer; } toTimer() { let timeParam = new Date(this.timer); let year = timeParam.getFullYear(); let month = timeParam.getMonth() + 1; let day = timeParam.getDate(); console.log(timeParam); return ("Time is " + year + "-" + month + "-" + day); } } window.TimerCount = TimerCount;