time as gmt?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
koocha
Forum Newbie
Posts: 4
Joined: Mon Feb 09, 2004 7:08 am

time as gmt?

Post 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
User avatar
Dr Evil
Forum Contributor
Posts: 184
Joined: Wed Jan 14, 2004 9:56 am
Location: Switzerland

Post by Dr Evil »

Try [php_man]gmdate[/php_man]

Dr Evil
koocha
Forum Newbie
Posts: 4
Joined: Mon Feb 09, 2004 7:08 am

Post by koocha »

Thanks a lot!

Tim
Post Reply