I need to add the time / date to the previous one.
I did this:
$f = getdate(strtotime($start_date)); $duration = 1000; //любое число в секундах $end_date = date('YmdHis O', mktime( $f['hours'], $f['minutes'], $f['seconds'] + $duration, $f['mon'], $f['mday'], $f['year'] )); Is there any way to simplify or shorten this code?