public function PHPExcel_DocumentProperties::setModified in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/DocumentProperties.php \PHPExcel_DocumentProperties::setModified()
Set Modified
Parameters
datetime $pValue:
Return value
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;
}