Page 1 of 1

time as gmt?

Posted: Mon Feb 09, 2004 9:32 am
by koocha
hey

is it possible to display the time as it is gmt using the date function?

at the mo i've got it like this:

Code: Select all

<?php
$the_time = date("h:i:s a T");


?>
but that just displays the time and tells the viewer it's EST

Posted: Mon Feb 09, 2004 10:49 am
by Dr Evil
Try [php_man]gmdate[/php_man]

Dr Evil

Posted: Mon Feb 09, 2004 11:12 am
by koocha
Thanks a lot!

Tim