| 1 | <?php |
||
| 8 | class Helpers |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Return a Carbon instance from a string or DateTime instance. |
||
| 12 | * |
||
| 13 | * @param string|DateTime|Carbon $date |
||
| 14 | * @return Carbon |
||
| 15 | */ |
||
| 16 | 5 | public static function dateToCarbon($date) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Create a Carbon instance from a string. Can be in '/Date(1365004652303-0500)/' format or any other standard format that Carbon will parse. |
||
| 35 | * |
||
| 36 | * @param string $date |
||
| 37 | * @return Carbon |
||
| 38 | */ |
||
| 39 | 2 | protected static function dateFromString($date) |
|
| 49 | } |
||
| 50 |