Re: default time
| From: | David Nicholson | Date: | Wed, 25 Jun 2003 14:37:19 +0000 |
| Subject: | Re: default time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152778@lists.php.net to get a copy of this message | ||
Hello,
This is a reply to an e-mail that you wrote on Wed, 25 Jun 2003 at 15:30,
lines prefixed by '>' were originally written by you.
> 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
Take a look at www.php.net/date and all will be explained.
David.
--
phpmachine :: The quick and easy to use service providing you with
professionally developed PHP scripts :: http://www.phpmachine.com/
Professional Web Development by David Nicholson
http://www.djnicholson.com/
QuizSender.com - How well do your friends actually know you?
http://www.quizsender.com/
(developed entirely in PHP)