RE: Day calculation

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

 



David

> i have to different dates and i want to know the 
> difference between them in days. Any ideas? 

== date difference

The internal format of date is a number with the seconds from 1970. You can
get the difference between two dates with a substraction, and you get the
number of seconds between these two dates... You can divide this number by
24 * 3600 (a day) 
  http://www.michaelhorowitz.com/php/datediff.php

You can see several functions...
  http://www.ilovejackdaniels.com/php/php-datediff-function/

You can read about date hnadling in php
  http://www.wdvl.com/Authoring/Languages/PHP/Date_Time/index.html
  http://www.php.net/date

== libraries ??

You can see different PHP Date Libraries... From ADOdb...
  http://phplens.com/phpeverywhere/adodb_date_library

Or from PEAR
  http://pear.php.net/package/Date

Or from PHPClasses
  http://www.phpclasses.org/browse/package/2105.html

8-)
Jaime



PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux