Thank you all: Need help with formatting time
| From: | John Holcomb | Date: | Tue, 17 Jul 2001 20:12:04 +0000 |
| Subject: | Thank you all: Need help with formatting time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-58334@lists.php.net to get a copy of this message | ||
Thank you all for your help and immedate responses.
The following worked:
$current_time = date("h:ia", mktime(0,780));
Thank ye all again :)
--- John Holcomb <john_6932php@yahoo.com> wrote:
> Hello and thank you.
>
> I'm trying to find a function(method) or existing
> code taht takes the number of minutes that have
> passed
> in a day and returns the time of the day. For
> example:
>
> 780 minutes == 1pm,
> 0 minutes == 12am,
> etc,etc.....
>
> so I'm looking for code that when you enter the
> number
> of minutes, it returns the time of day.
>
> example:
>
> $some_time = foo(780);
>
> print($some_time);
>
> //prints 1:00pm
>
>
> Thnaks again.
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/