Hello
I want to check if time is beween 28th august 2007 12:12:12 and 28th august 2007 12:18:12
any help
thanks
time checking
Moderator: General Moderators
strtotime is your friend
Code: Select all
<?php
$s = strtotime('28th august 2007 12:12:12');
$e = strtotime('28th august 2007 12:18:12');
$now = time();
if ( $now>=$s && $now<=$e ) {
echo '+';
}
else {
echo '-';
}