see |
\Zend\Http\Header\Date |
see |
\Zend\Http\Header\Expires |
see |
\Zend\Http\Header\IfModifiedSince |
see |
\Zend\Http\Header\IfUnmodifiedSince |
see |
\Zend\Http\Header\LastModified |
Methods
Allow casting to string
__toString() : string
Compare provided date to date for this header
Returns < 0 if date in header is less than $date; > 0 if it's greater, and 0 if they are equal.
compareTo(string | \DateTime $date) : int
Parameters
Exceptions
Returns
int
Return date for this header as an instance of \DateTime
date() : \DateTime
Return date for this header
getDate() : string
Retrieve header name
getFieldName() : string
Inherited
inherited_from |
\Zend\Http\Header\HeaderInterface::getFieldName() |
Returns
string
Get header value as formatted date
getFieldValue() : string
Return header line
toString() : string
Returns in form of "NAME: VALUE"
Returns
string
Properties
Date instance for this header
$date : \DateTime
Constants
DATE_RFC1036
DATE_RFC1036
Date formats according to RFC 2616
DATE_RFC1123