The given date must either be an RFC2822 parseable date string or a DateTime
object. The timezone will be converted to GMT internally, but the point in
time remains the same.
In order to signal that the response has already expired, the date should
be set to the same date as the Date header (that is, $now). To communicate
an infinite expiration time, the date should be set to one year in the future.
Expiration times should not be more than one year in the future, according
to RFC 2616 / 14.21
public setExpires ( string | DateTime $date ) : |
||
$date | string | DateTime | |
Результат | This response, for method chaining |