使用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