RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread ROBERT MCPEAK
* 24 * 60 * 60)); Hope this helps, Michael Egan -Original Message- From: ROBERT MCPEAK [mailto:RMCPEAK@;jhuccp.org] Sent: 12 November 2002 15:31 To: [EMAIL PROTECTED] Subject: [PHP] newbie: help with date arithmetic[Scanned] I'm trying to add/subract two dates. I think I need to use mktim

RE: [PHP] newbie: help with date arithmetic[Scanned]

2002-11-12 Thread Michael Egan
you might do: $years = floor($difference / (365 * 24 * 60 * 60)); Hope this helps, Michael Egan -Original Message- From: ROBERT MCPEAK [mailto:RMCPEAK@;jhuccp.org] Sent: 12 November 2002 15:31 To: [EMAIL PROTECTED] Subject: [PHP] newbie: help with date arithmetic[Scanned] I'

Re: [PHP] newbie: help with date arithmetic

2002-11-12 Thread Ernest E Vogelsinger
At 16:30 12.11.2002, ROBERT MCPEAK spoke out and said: [snip] >I'm trying to add/subract two dates. I think I need to use mktime() but I >can't quite figure out how. > >I'd like to do something like this: > >(2002-11-15)-(2002-11-10)=5 > >or > >(2002-12-10)

[PHP] newbie: help with date arithmetic

2002-11-12 Thread ROBERT MCPEAK
I'm trying to add/subract two dates. I think I need to use mktime() but I can't quite figure out how. I'd like to do something like this: (2002-11-15)-(2002-11-10)=5 or (2002-12-10)-(2002-11-10)=20 Obviously taking into account number of days in a given month. Does somebody have some code