You are here

public function DateTimeTest::testDATEwith1904Calendar in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/DateTimeTest.php \DateTimeTest::testDATEwith1904Calendar()

File

vendor/phpoffice/phpexcel/unitTests/Classes/PHPExcel/Calculation/DateTimeTest.php, line 57

Class

DateTimeTest

Code

public function testDATEwith1904Calendar() {
  PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_MAC_1904);
  $result = PHPExcel_Calculation_DateTime::DATE(1918, 11, 11);
  PHPExcel_Shared_Date::setExcelCalendar(PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900);
  $this
    ->assertEquals($result, 5428);
}