public function testEnglishDateTimeObject() { $object = new DateTime("2015-01-01 08:00:00", new \DateTimeZone('Asia/Dhaka')); $this->assertEquals("01-01-2015 08:00:00", $object->enFormat('d-m-Y H:i:s')); }
/** * @return DateTime */ private function getNativeDateTimeObject() { return $this->_phpDateTime->setTimestamp($this->getTimestamp())->setTimezone($this->getTimezone()); }