Thanks a lot - I never realised you had to use the date() function to
get the time!

-----Original Message-----
From: Adam Voigt [mailto:[EMAIL PROTECTED] 
Sent: 25 June 2003 15:44
To: Gary Ogilvie
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] default time

Read the manual page for the date tag:

http://us2.php.net/date



On Wed, 2003-06-25 at 10:28, Gary Ogilvie wrote:
> Hi everyone, I want to assign the current time to a variable.
Currently
> I am using:
> 
> $myTime = time()
> 
> But this displays the time as:
> 
> 1056551047 when it is in fact 15:25
> 
> How do I get the proper format for time? I looked on the web site but
> couldn't understand any of it :(
> 
> Thanks in advance
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to