1<?php
2$date = new DateTime();
3echo $date->getTimestamp(). "<br>";
4$date->add(new DateInterval('PT674165S')); // adds 674165 secs
5echo $date->getTimestamp();
6?>
1$minutes_to_add = 5;
2
3$time = new DateTime('2011-11-17 05:05');
4$time->add(new DateInterval('PT' . $minutes_to_add . 'M'));
5
6$stamp = $time->format('Y-m-d H:i');