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? Quote 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"; } Quote Link to comment https://forums.phpfreaks.com/topic/187501-compare-unix-timestamps/#findComment-990034 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.