Friday, April 3, 2015

Display date and time in kyiv and warsaw - PHP Snippet

Display date and time in kyiv and warsaw - PHP Snippet

This php function display the date and the current time in Ukraine and Poland.
date_default_timezone_set('Europe/Kiev'); 

echo "Today's date ".date('d.m.o').'<br />';

echo "Kyiv time ".date('h:i:s')."<br />";

date_default_timezone_set('Europe/Warsaw');

echo "Warsaw time".date('h:i:s');
Disqus Comments