Beispiel #1
0
 public function test_convert_to_date_time_with_time_being_set()
 {
     $jDate = new JDateTime('1394', '9', '9', 15, 25, 56);
     $this->assertEquals('2015-11-30 15:25:56', $jDate->toDateTime()->format('Y-m-d H:i:s'));
     $this->assertEquals('2015-11-30 15:25:56', DateConverter::jalaliToDateTime($jDate)->format('Y-m-d H:i:s'));
 }