Hi i'm trying to sum time with the current date time, this code seems to work:
$now = time();
$_day = strtotime('+1day',$now);
$_week = strtotime('+7day',$now);
$_month = strtotime('+1month',$now);
$_year = strtotime('+1year',$now);
what i'm wondering is if is there any other way , maybe better way of doing this .. can anyone show me new ways and the reasons why i should turn to another syntax? I would like to do this more accurate as possible, so if i can reflect this script it is great!
thanks
EDIT:
just to be clear i need to use unix timestamps i don't need formatted dates/datetimes