Timer in days hours minutes seconds

You must Login before you can answer or comment on any questions.

self.time = { d:Math.floor(self.total_sec/86400),h:Math.floor(self.total_sec%86400/3600),m : Math.floor(self.total_sec%86400/3600/60), s: (self.total_sec%60) };
What's wrong with this calculation?

Your Answer

Think you can help? Login to answer this question!