You are here

public function DateTimeTest::testEDATEtoPHP in Loft Data Grids 7.2

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

File

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

Class

DateTimeTest

Code

public function testEDATEtoPHP() {
  PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_PHP_NUMERIC);
  $result = PHPExcel_Calculation_DateTime::EDATE('2012-1-26', -1);
  PHPExcel_Calculation_Functions::setReturnDateType(PHPExcel_Calculation_Functions::RETURNDATE_EXCEL);
  $this
    ->assertEquals(1324857600, $result, NULL, 1.0E-8);
}