If-Unmodified-Since Header

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.28

 Methods

Allow casting to string

__toString() : string
Inherited

inherited_from \Zend\Http\Header\AbstractDate::__toString()

Returns

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
Inherited

see \strcmp()
inherited_from \Zend\Http\Header\AbstractDate::compareTo()

Parameters

$date

string\DateTime

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

int

Return date for this header as an instance of \DateTime

date() : \DateTime
Inherited

inherited_from \Zend\Http\Header\AbstractDate::date()

Returns

Create date-based header from string

fromString(string $headerLine) : \Zend\Http\Header\AbstractDate
Inherited

inherited_from \Zend\Http\Header\AbstractDate::fromString()

Parameters

$headerLine

string

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

Return date for this header

getDate() : string
Inherited

inherited_from \Zend\Http\Header\AbstractDate::getDate()

Returns

string

Return current date output format

getDateFormat() : string
Inherited

inherited_from \Zend\Http\Header\AbstractDate::getDateFormat()

Returns

string

Get header name

getFieldName() : string

Returns

string

Get header value as formatted date

getFieldValue() : string
Inherited

inherited_from \Zend\Http\Header\AbstractDate::getFieldValue()

Returns

string

Set the date for this header, this can be a string or an instance of \DateTime

setDate(string | \DateTime $date) : \Zend\Http\Header\AbstractDate
Inherited

inherited_from \Zend\Http\Header\AbstractDate::setDate()

Parameters

$date

string\DateTime

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Returns

Set date output format

setDateFormat(int $format) 
Inherited

inherited_from \Zend\Http\Header\AbstractDate::setDateFormat()

Parameters

$format

int

Exceptions

\Zend\Http\Header\Exception\InvalidArgumentException

Return header line

toString() : string
Inherited

Returns in form of "NAME: VALUE"

inherited_from \Zend\Http\Header\AbstractDate::toString()

Returns

string

 Properties

 

Date instance for this header

$date : \DateTime
Inherited

inherited_from \Zend\Http\Header\AbstractDate::$$date
 

Date output format

$dateFormat : string
Inherited

inherited_from \Zend\Http\Header\AbstractDate::$$dateFormat
 

Date formats defined by RFC 2616.

$dateFormats : array
Inherited

RFC 1123 date is required RFC 1036 and ANSI C formats are provided for compatibility with old servers/clients

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
inherited_from \Zend\Http\Header\AbstractDate::$$dateFormats

 Constants

 

DATE_ANSIC

DATE_ANSIC 
Inherited

inherited_from \Zend\Http\Header\AbstractDate::DATE_ANSIC
 

DATE_RFC1036

DATE_RFC1036 
Inherited

inherited_from \Zend\Http\Header\AbstractDate::DATE_RFC1036
 

Date formats according to RFC 2616

DATE_RFC1123 
Inherited

link http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3
inherited_from \Zend\Http\Header\AbstractDate::DATE_RFC1123