在PHP中比较2个时间戳,并获得两者之间的时间? [英] Compare 2 timestamps in PHP and get the days between?
本文介绍了在PHP中比较2个时间戳,并获得两者之间的时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
谢谢!
解决方案
$ days = unixtojd($ t1) - unixtojd($ t2);
I have 2 timestamps (like 3434368673) an want to get the days between them. How can I do that?
Thanks!
解决方案
Use the Julian Day
$days = unixtojd($t1) - unixtojd($t2);
这篇关于在PHP中比较2个时间戳,并获得两者之间的时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文