1 | <?php |
||
5 | final class CookieUtil |
||
6 | { |
||
7 | /** |
||
8 | * Handles dates as defined by RFC 2616 section 3.3.1, and also some other |
||
9 | * non-standard, but common formats. |
||
10 | * |
||
11 | * @var array |
||
12 | */ |
||
13 | private static $dateFormats = array( |
||
14 | 'D, d M y H:i:s T', |
||
15 | 'D, d M Y H:i:s T', |
||
16 | 'D, d-M-y H:i:s T', |
||
17 | 'D, d-M-Y H:i:s T', |
||
18 | 'D, d-m-y H:i:s T', |
||
19 | 'D, d-m-Y H:i:s T', |
||
20 | 'D M j G:i:s Y', |
||
21 | 'D M d H:i:s Y T', |
||
22 | ); |
||
23 | |||
24 | /** |
||
25 | * @see https://github.com/symfony/symfony/blob/master/src/Symfony/Component/BrowserKit/Cookie.php |
||
26 | * |
||
27 | * @param string $dateValue |
||
28 | * @return \DateTime|false |
||
29 | */ |
||
30 | public static function parseDate($dateValue) |
||
40 | } |
||
41 |