Tuck Posted October 9, 2009 Share Posted October 9, 2009 could anyone create an example of how to check if there have passed 30 min or more with old date compared to new date. Time Stamp Format: Array ( [0] => 2009 #Year [1] => 10 #month [2] => 09 #day [3] => 20 #Hour [4] => 55 #minute [5] => 16 #second ) Quote Link to comment https://forums.phpfreaks.com/topic/177119-need-function-help/ Share on other sites More sharing options...
Daniel0 Posted October 9, 2009 Share Posted October 9, 2009 Assuming that array is in $date: $timestamp = mktime($date[3], $date[4], $date[5], $date[1], $date[2], $date[0]); if ($timestamp + 30*60 <= time()) { echo 'At least thirty minutes have passed.'; } Quote Link to comment https://forums.phpfreaks.com/topic/177119-need-function-help/#findComment-933980 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.