check date is in the last 24 hours? code example
Example: 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";
}
if (time() - strtotime("2010-07-04 10:19:26") > 60*60*24) {
print "Older than 24h";
} else {
print "Newer than 24h";
}