RE: FN-FORUM: mktime
date posted 1st February 2004 14:08
Looks fine, no need for $seconds in mktime since date format drops it.
----
Philip Painter, VIAS, 07790 666784
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] On Behalf Of
Jonathan Chong
Sent: 01 February 2004 10:36
To: FN-FORUM / [EMAIL REMOVED]
Subject: FN-FORUM: mktime
Hi guys
Can anyone tell me what's wrong with this:
list($hour, $minutes, $seconds) = split(':', $time);
if ($parameter == 'full') $time = date('g:i a', mktime($hour, $minutes,
$seconds, 0, 0, 0));
When I do a foreach on that, I always get the same value, 6:59 am
eventhough when I do print $time, $time is always different in the for
each.
--
Jonathan Chong
Internet Developer
: Digital Look
: [EMAIL REMOVED]
--
** Get all the Freelance Work you Can Handle *
The Web Design Business Kit will show you proven tactics
and strategies for marketing your business, winning bids, managing
projects and pricing your work. Free Shipping Worldwide. Read more & get
free chapters at: http://www.sitepoint.com/launch/b7c91e/3/4
To advertise here: http://www.freelancers.net/advertising.html