Answers for "check date is in the last 24 hours?"

PHP
1

check date is in the last 24 hours?

if (time() - strtotime("2010-07-04 10:19:26") > 60*60*24) {
   print "Older than 24h";
} else {
   print "Newer than 24h";
}
Posted by: Guest on April-23-2021

Code answers related to "check date is in the last 24 hours?"

Browse Popular Code Answers by Language