Re: dates
| From: | eschmid+sic at s dot netic dot de | Date: | Mon, 19 Feb 2001 00:46:03 +0000 |
| Subject: | Re: dates | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-40486@lists.php.net to get a copy of this message | ||
On Sun, Feb 18, 2001 at 04:40:08PM -0700, Julian Rockeu wrote:
> Anyone know how to use the PHP date functions to work out the difference
> between two timestamps?
>
> For example..
>
> Figure out the number of seconds, minutes, hours, days, months and years
> between
>
> 5th October 2001 14:20:10
> and
> 26th February 1998 109:54:10
This should be doable with http://php.net/mktime and http://php.net/date. But
for such heavy calculations I prefer XEmacs calc-mode or the calendarr-mode.
-Egon
--
http://www.linuxtag.de/
http://php.net/books.php
http://www.concert-band.de/
http://www.php-buch.de/