jq获取两个日期相差天数、小时、分秒

来源:互联网 发布:js设计模式观察者模式 编辑:程序博客网 时间:2024/05/16 07:12
 天:Math.floor(t/86400)

时:Math.floor(t%86400/3600)

分:Math.floor(t%86400%3600/60)

秒:t%60 
0 0
原创粉丝点击