Re: Calulating the Diffenece of two Dates in e.G. days
| From: | Ernest E Vogelsinger | Date: | Thu, 08 May 2003 12:28:37 +0000 |
| Subject: | Re: Calulating the Diffenece of two Dates in e.G. days | ||
| References: | 1 2 | Groups: | php.general php.general |
| Request: | Send a blank email to php-general+get-146825@lists.php.net to get a copy of this message | ||
At 14:26 08.05.2003, Jason Wong spoke out and said:
--------------------[snip]--------------------
>On Thursday 08 May 2003 20:14, Torsten Ueberschar wrote:
>
>> i am looking for an algorithm whitch makes something like this:
>>
>> echo div_dates("2003-05-01", "2003-05-02");
>
>Convert both to unix timestamps then subtract one from the other.
--------------------[snip]--------------------
This will return 86400, being the number of seconds within exactly one day.
--
>O Ernest E. Vogelsinger
(\) ICQ #13394035
^ http://www.vogelsinger.at/