note 126836 deleted from datetimeimmutable.settimestamp by cmb

From: Date: Wed, 09 Feb 2022 09:07:59 +0000
Subject: note 126836 deleted from datetimeimmutable.settimestamp by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217590@lists.php.net to get a copy of this message
Note Submitter: Jaman ---- Simple way to create object from timestamp: <?php $date = DateTimeImmutable::createFromFormat('U', 1644390600, new DateTimeZone('Europe/Kiev')); echo $date->format('d.m.Y H:i:s'); //09.02.2022 07:10:00

« previous php.notes (#217590) next »