使用jQuery获取两个日期之间的差异 [英] Get difference between two dates using jquery
本文介绍了使用jQuery获取两个日期之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以建议一个jQuery插件来计算两个日期之间的时差(日期也可能包含时间)并将其显示为"32天","13小时","20分钟"等吗?
Can any one suggest a jQuery plugin for calculating the difference between two dates (dates may contain time also) and show it as '32 days', '13 hours', '20 min' etc?
推荐答案
我强烈建议使用出色的 datejs框架轻松进行所有日期时间计算
I highly recommend using the excellent datejs framework to easily do all your date time calculations
这篇关于使用jQuery获取两个日期之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文