<?php
now=new Date();
if(now.getTimezoneOffset()==0){z=now.getTime()+(4*60*60*1000)}
else{z=now.getTime()};
now.setTime(z);
h=now.getHours();
if(h<6){t="Доброй Ночи!"};
if(h>=6&&h<12){t="Доброе Утро!"};
if(h>=12&&h<18){t="Добрый День!"};
if(h>=18){t="Добрый Вечер!"};
document.write(t)
?>