> -----Original Message-----
> From: Andrey Hristov [mailto:[EMAIL PROTECTED]]
> Sent: 18 March 2002 08:20
>
> $your_timestamp+=gmmktime(0,0,0,1,1,1972);
Well, that depends on your definition of "year" -- the problem here is that it makes
no allowances for leap years, so (for example) 2-mar-2003 would be converted to
1-mar-2005 (since 29-feb-2004 would be effectively "lost").
Both the other solutions offered would cope with this, but personally I like the
strtotime("+2 years") one best!
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php