RE: Convert time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



That solution is like walking over the river to get water.
 
-----Original Message-----
From: Meteorlet Woody
To: php-windows
Sent: 17-2-2004 1:44
Subject: Re:  Convert time

Harpreet,Hello!

	Another easy way like this:
	$min = Date('i', mktime(0, 0, $totsec, 0, 0, 2004));
	$sec = Date('s', mktime(0, 0, $totsec, 0, 0, 2004));

May this helps,

Meteorlet Woody

======= 2004-02-17 00:35:40 =======

>
>I am trying to add time. If my seconds or minutes go over 60 how can i
find
>the number of minutes or hours.
>
>I am doing something like this
>
> if ($totsec>60)
>  {
>    $min=$totsec/60;
>    $sec=$totsec-$min*60;
>  }
>
>but i get results in 1.233333333.
>
>I need integers
>
>Please help
>
>-- 
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>

= = = = = = = = = = = = = = = = = = = =

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


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux