JSFiddle - React, Tailwind, and code Playground
by Web Carvers
JavaScript
function vipDate(d, h, m, s)
{
this.days = (d!=undefined) ? d : 0;
this.hours = (h!=undefined) ? h : 0;
this.minutes = (m!=undefined) ? m : 0;
this.seconds = (s!=undefined) ? s : 0;
}
function startTimer()
{
var td = new Date();
var vipToday = new vipDate();
vipToday.days = td.getUTCDate();
vipToday.hours = td.getHours();
vipToday.minutes = td.getMinutes();
vipToday.seconds = td.getSeconds();
console.log(vipToday);
/*setInterval(function(
), 1000);*/
}