Re: Re: How to add 2 years to todays date ?
| From: | Martin Schichl | Date: | Mon, 18 Mar 2002 08:51:28 +0000 |
| Subject: | Re: Re: How to add 2 years to todays date ? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88898@lists.php.net to get a copy of this message | ||
At 10:35 18.03.02 +0200, Andrey wrote:
>Isn't the hack with gmmktime() faster? It is clean if the code knows
>what is 1,1,1970 and how Unixtime is measured.
Seems that you'r right, as
mktime(date("H"),date("i"),date("s"),date("m"),date("d"),(date("Y")+2))
calls six times the function "date" ...
Martin
-----------------------------------------------------------------
Dipl.-Ing. Martin Schichl
SC&C Software, Communication & Consulting GmbH & Co KEG
Grottenhofstr. 3, A-8053 Graz
Tel. +43/(0)316/265-205, Fax +43/(0)316/265-234
mschichl@scc.co.at, http://scc.co.at