- time: documentation ( source)
<?php
$time_start = new DateTime('2014-10-02');
echo $time_start->format('r') . "\n";
$time_start->modify('first day of this month');
echo $time_start->format('r') . "\n";
$time_start->setTimestamp(time());
echo $time_start->format('r') . "\n";