<?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";
?>
- Output for 5.6.19 - 5.6.28, 7.0.4 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
- Thu, 02 Oct 2014 00:00:00 +0200
Wed, 01 Oct 2014 00:00:00 +0200
Fri, 11 Nov 2016 12:40:46 +0100
- Output for 5.6.0 - 5.6.18, 7.0.0 - 7.0.3
- Thu, 02 Oct 2014 00:00:00 +0200
Wed, 01 Oct 2014 00:00:00 +0200
Tue, 01 Nov 2016 12:40:46 +0100
preferences:
53.51 ms | 402 KiB | 57 Q