public function PHPExcel_DocumentProperties::setCreated in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/DocumentProperties.php \PHPExcel_DocumentProperties::setCreated()
Set Created
Parameters
datetime $pValue:
Return value
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ DocumentProperties.php, line 197
Class
- PHPExcel_DocumentProperties
- PHPExcel_DocumentProperties
Code
public function setCreated($pValue = null) {
if ($pValue === NULL) {
$pValue = time();
}
elseif (is_string($pValue)) {
if (is_numeric($pValue)) {
$pValue = intval($pValue);
}
else {
$pValue = strtotime($pValue);
}
}
$this->_created = $pValue;
return $this;
}