Re[2]: [PHP-WIN] Convert time
| From: | re_action | Date: | Mon, 16 Feb 2004 17:39:08 +0000 |
| Subject: | Re[2]: [PHP-WIN] Convert time | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22852@lists.php.net to get a copy of this message | ||
Hello B.A.T.,
Monday, February 16, 2004, 8:01:30 PM, you wrote:
SBATH> On Mon, 2004-02-16 at 17:46, Svensson, B.A.T. (HKG) wrote:
>> Example:
>>
>> $min = (int)($sec/60);
>> $min = $sec % 60;
>>
SBATH> Jesus.... "$min = $sec % 60 60;" should be "$sec = $sec % 60;" ....
SBATH> I'll have a lot of funny bugs to behold in my code tomorrow....
Maybe $sec = min % 60 ;) ?