- date_default_timezone_set: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
date_default_timezone_set('Europe/Moscow');
$date_format = "d.m.Y HH:mm:ss";
$dat = strtotime('now');
echo('now = '.date($date_format, $dat)."\n");
$che = strtotime('31.05.2013 11:05:20');
if($dat >= $che)
{
echo($dat.' >= '.$che.' меняем баннеры');
}else{
echo($dat.' < '.$che);
}