예제 #1
0
 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'));
 }
예제 #2
0
 /**
  * @return DateTime
  */
 private function getNativeDateTimeObject()
 {
     return $this->_phpDateTime->setTimestamp($this->getTimestamp())->setTimezone($this->getTimezone());
 }