You are here

public function PHPExcel_DocumentProperties::setModified in Loft Data Grids 6.2

Same name and namespace in other branches
  1. 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/DocumentProperties.php \PHPExcel_DocumentProperties::setModified()

Set Modified

Parameters

datetime $pValue:

Return value

PHPExcel_DocumentProperties

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/DocumentProperties.php, line 227

Class

PHPExcel_DocumentProperties
PHPExcel_DocumentProperties

Code

public function setModified($pValue = null) {
  if ($pValue === NULL) {
    $pValue = time();
  }
  elseif (is_string($pValue)) {
    if (is_numeric($pValue)) {
      $pValue = intval($pValue);
    }
    else {
      $pValue = strtotime($pValue);
    }
  }
  $this->_modified = $pValue;
  return $this;
}