public function testTimestampToDate_suchMagic() { $dt = new DateTime('August 10, 2020 3:00p'); $timestamp = $dt->getTimestamp() - ClockProvider::$EPOCH; $dtft = ClockProvider::timestampToDate($timestamp); $this->assertEquals($dt, $dtft); }
public function timestamp_to_datetime($ts) { return ClockProvider::timestampToDate($ts); }