Re: Time Difference

From: Date: Fri, 15 Feb 2002 16:56:08 +0000
Subject: Re: Time Difference
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-16981@lists.php.net to get a copy of this message
Sorry Rick, I should've been more clear with my problem, but now it's not a problem anymore. I got it to work perfectly. The two times were the original starttime and then the endtime would be time() (the time now). My problem was with calculating the hours between the two, I got it a few moments ago. Thx again, and sorry for any confusion. Joe :) "Rick Emery" <remery@excel.com> wrote in message news:EAA093B474ABD311A71E00508B5FE08305C2D1B9@adntex03.us.excel.com... > Are you saying you got two different return values with the exact same input > values for $hour, $minute, $second, $month, $day, $year?? > > -----Original Message----- > From: Lerp [mailto:joe@coastaldestination.com] > Sent: Friday, February 15, 2002 8:46 AM > To: php-db@lists.php.net > Subject: [PHP-DB] Time Difference > > > Hi again. I have a date field in my mssql 7.0 db format : 2/14/2002 > 12:21:28 PM . I would like to know how to calculate the difference in > seconds between 2 such timestamps. > > $starttime = mktime($hour, $minute, $second, $month, $day, $year); returns > :1013776613 > > endtime = mktime($hour, $minute, $second, $month, $day, $year); returns: > 1007303960 > > These are the number of seconds since epoch, correct? > > So obviously there's something I'm missing, but not sure what I've missed :) > > Your help is muchly appreciated, thx Joe :) > > > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#16981) next »