date - PHP: Adding years to a timestamp -
in php given utc timestamp add n number of years. should take consideration leap years.
thank you.
$newtimestamp = strtotime('+2 years', $timestamp);
replace "+2 years" required.
in php given utc timestamp add n number of years. should take consideration leap years.
thank you.
$newtimestamp = strtotime('+2 years', $timestamp);
replace "+2 years" required.
Comments
Post a Comment