- var_dump: documentation ( source)
<?php
//Source: https://bugs.php.net/bug.php?id=67634
$date = \DateTimeImmutable::createFromFormat(\DateTime::ATOM, '2019-11-03T01:00:00-05:00')->setTimezone(new \DateTimeZone('America/New_York'));
var_dump($date->format(\DateTimeImmutable::ATOM));
$date->getTimestamp();
var_dump($date->format(\DateTimeImmutable::ATOM));