RE: [PHP] default time (Solved)
| From: | Gary Ogilvie | Date: | Wed, 25 Jun 2003 14:37:50 +0000 |
| Subject: | RE: [PHP] default time (Solved) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152780@lists.php.net to get a copy of this message | ||
Thanks a lot - I never realised you had to use the date() function to
get the time!
-----Original Message-----
From: Adam Voigt [mailto:adam@cryptocomm.com]
Sent: 25 June 2003 15:44
To: Gary Ogilvie
Cc: php-general@lists.php.net
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 (adam@cryptocomm.com)
Linux/Unix Network Administrator
The Cryptocomm Group