且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在php/mysql中比较日期和时间

更新时间:2023-01-29 17:53:46

只需比较两个时间戳即可:

Just comparing two timestamps would suffice:

$t1 = strtotime($time);
$t2 = strtotime($Max_Time);

if($t1 > $t2) { .. }