note 123547 deleted from function.strtotime by crell
| From: | crell@php.net | Date: | Thu, 30 Jun 2022 20:41:26 +0000 |
| Subject: | note 123547 deleted from function.strtotime by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218813@lists.php.net to get a copy of this message | ||
Note Submitter: Aleksandr
----
We can get timestamp from RFC 2822:
<?php
$time = strtotime('Mon, 30 Jun 2014 11:30:00 +0400'); // timestamp from RFC 2822
echo date('Y-m-d H:i:s', $time); // 2014-06-30 10:30:00
?>