Countdown to a specific date

孤者浪人 提交于 2019-12-02 02:12:25

You should be able to do the math yourself and print it out. Use modulus to get the remainder in minutes and then floor the days.
In the example you get seconds by subtracting the two time objects so lets start there:
totalseconds % 60, remainder of seconds
totalseconds / 60, total minutes
totalminutes % 60, remainder of minutes
etc...

See for code: http://jsfiddle.net/jHVnz/

Have you seen this plugin? http://www.keith-wood.name/countdown.html

ramancha

In the example you get seconds by subtracting the two time objects so lets start there:

totalseconds % 60, remainder of seconds
totalseconds / 60, total minutes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!