Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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";
}
 
PREVIOUS NEXT
Tagged: #check #date
ADD COMMENT
Topic
Name
1+3 =