* 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
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'
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)
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
4 matches
Mail list logo