Re: [PHP] Calculating dates

2008-03-01 Thread Nathan Nobbe
On Sat, Mar 1, 2008 at 8:42 AM, Brice <[EMAIL PROTECTED]> wrote: > I like this way too but it will not work with a date before the first > January 1901. > > Do you have another method? the DateTime class uses an unsigned 64 bit integer to represent the unix timestamp internally. as a result it

Re: [PHP] Calculating dates

2008-03-01 Thread Brice
I like this way too but it will not work with a date before the first January 1901. Do you have another method? Brice Favre On Sat, Mar 1, 2008 at 7:08 AM, Jim Lucas <[EMAIL PROTECTED]> wrote: > Ron Piggott wrote: > > Is there an easy way to calculate the number of days between two dates? >

Re: [PHP] Calculating dates

2008-03-01 Thread Ron Piggott
Thanks. That's a nifty way of doing this. Ron On Fri, 2008-02-29 at 22:08 -0800, Jim Lucas wrote: > Ron Piggott wrote: > > Is there an easy way to calculate the number of days between two dates? > > > > Example: 2008-02-27 - 2007-12-03 = 86 days > > > > The dates will be in the format above YY

Re: [PHP] Calculating dates

2008-02-29 Thread Jim Lucas
Ron Piggott wrote: Is there an easy way to calculate the number of days between two dates? Example: 2008-02-27 - 2007-12-03 = 86 days The dates will be in the format above -MM-DD Ron This should do the trick http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calculating dates

2008-02-29 Thread Ron Piggott
Is there an easy way to calculate the number of days between two dates? Example: 2008-02-27 - 2007-12-03 = 86 days The dates will be in the format above -MM-DD Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php