Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
$dayStart = strtotime('12:00:00'); $dayEnd = strtotime('01:00:00'); $currentTimestamp = strtotime(date('H:i:s')); if ($currentTimestamp >= $dayStart && $currentTimestamp <= $dayEnd) { echo 'Мы работаем!'; } else { echo 'Мы не работаем!'; }
SendNotice('test', 'Test text');
if ($r->timestamp +3600*24*7 < time()) { $this->template->error(lang("error_43")); }