aliento Posted January 6, 2010 Share Posted January 6, 2010 I want to know if a Unix timestamp have passed current time. if($current_ts<=$old_ts) echo 'it have passed'; Does it works like this? Link to comment https://forums.phpfreaks.com/topic/187501-compare-unix-timestamps/ Share on other sites More sharing options...
oni-kun Posted January 6, 2010 Share Posted January 6, 2010 I want to know if a Unix timestamp have passed current time. if($current_ts<=$old_ts) echo 'it have passed'; Does it works like this? Yes, It may work like this as they are just simply incrementing numbers. $time = time(); $check = "1234567890"; if ($time >= $check) { echo "Time has passed $check"; } Link to comment https://forums.phpfreaks.com/topic/187501-compare-unix-timestamps/#findComment-990034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.