Use the date() function to get the server time ->
http://uk2.php.net/manual/en/function.date.php
If you want to set the time to a certain place gmstrftime ->
http://uk2.php.net/manual/en/function.gmstrftime.php
You change the locale settings to get the what time you want
If you want GMT time use gmmktime ->
http://uk2.php.net/manual/en/function.gmmktime.php