比较PHP中的2个时间戳并获取两者之间的天数?

EOB*_*EOB 0 php timestamp date

我有2个时间戳(如3434368673)想要得到它们之间的日子.我怎样才能做到这一点?

谢谢!

Rob*_*gar 6

使用朱利安日

$days = unixtojd($t1) - unixtojd($t2);
Run Code Online (Sandbox Code Playgroud)