Re: Convert time

From: Date: Tue, 17 Feb 2004 00:44:53 +0000
Subject: Re: Convert time
Groups: php.windows 
Request: Send a blank email to php-windows+get-22855@lists.php.net to get a copy of this message
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 > = = = = = = = = = = = = = = = = = = = =

« previous php.windows (#22855) next »