calculate time difference

前端 未结 4 823
醉话见心
醉话见心 2020-12-12 07:25

I have a jQuery clock that gives the time from 00:00 to 23:00.

Now I want to calculate the time difference between two times. Suppose the \"in\" time is 11:00, and t

4条回答
  •  北海茫月
    2020-12-12 07:52

    As suggested from Barry, I would take a look at Datejs.

    In the documentation page if you find the word "difference" you could find a guy asking for the same problem. As suggested in the comment reply you should use the TimeSpan class.

    Hope it helps!

提交回复
热议问题