| 1 | <?php |
||
| 20 | abstract class AbstractDateTime |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * Returns a new DateTime object. |
||
| 25 | * |
||
| 26 | * @param mixed $value The incoming date/time value. |
||
| 27 | * |
||
| 28 | * @return mixed If the value is already a DateTime then it is returned |
||
| 29 | * as-is; if the value is invalid as a date/time then `false` is returned; |
||
| 30 | * otherwise, a new DateTime is constructed from the value and returned. |
||
| 31 | * |
||
| 32 | */ |
||
| 33 | 22 | protected function newDateTime($value) |
|
| 58 | } |
||
| 59 |