On Wednesday 18 June 2003 17:21, Lisi wrote:
> That's what I tried, but when the minutes are less than 40 it doesn't work
> I guess because you get negative. Actually, I'm not sure it even workied
> for the one that was more than 40. Is there a way to do taking into account
> hours as well without having to code by hand "if minutes < 40 " ... etc.?
> Maybe I shouldn't be dealing with hours and minutes separately.

Not sure what you're trying to do, but try

  $time = mktime ($hour,$minute - $offset,0,1,1,2003);

where $offset can be any number of minutes, mktime() will take care of the 
necessary calculations for you.

Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
Search the list archives before you post
poverty, n.:
        An unfortunate state that persists as long
        as anyone lacks anything he would like to have.

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

Reply via email to