Countdown to a specific date

前端 未结 3 963
北恋
北恋 2021-01-21 23:28

What I\'m trying to do seems like it should be simple but is proving tricky. I need a countdown script that uses a target date and gives me three separate figures - namely Days,

3条回答
  •  感情败类
    2021-01-21 23:42

    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

提交回复
热议问题