Represents the value of a date header, parsing the date into a \DateTime object.
- author Zaahid Bateson
CloneableInstantiable
| Methods |
| public __construct(Psr\Log\LoggerInterface $logger, ZBateson Tries parsing the passed token as an RFC 2822 date, and failing that into an RFC 822 date, and failing that, tries to parse it by calling new DateTime($value).
|
| public getDateTime() : ?DateTime Returns a DateTime object or null if it can't be parsed. |
| Properties |
protected ?DateTime $date = NULL
|
| Methods |