class DateFormat extends AbstractEnum (View source)

Provides a set of commonly-used time/date-stamps in feeds.

Constants

ATOM

1970-01-01T00:00:00+00:00.

ISO8601

1970-01-01T00:00:00+00:00.

RFC3339

1970-01-01T00:00:00+00:00.

RFC822

Thu, 01 Jan 70 00:00:00 +0000.

RFC2822

Thu, 01 Jan 1970 00:00:00 +0000.

RSS20

Thu, 01 Jan 1970 00:00:00 +0000.

LONG_12HOUR

Thursday, 1st January 1970, 12:00am GMT.

LONG_24HOUR

Thursday, 1st January 1970, 0:00 GMT.

SHORT_12HOUR

Thu, 1 Jan 1970, 12:00am GMT.

SHORT_24HOUR

Thu, 1 Jan 1970, 0:00 GMT.

SINCE_EPOCH

1514357702.

Methods

static array
introspect()

Introspects the Enum for its values.

static array
introspectKeys()

Introspects the Enum for its keys.

static bool
hasValue(string $value)

Determines if the value is one of the Enum values of this type.

Details

static array introspect()

Introspects the Enum for its values.

Return Value

array An associative array where the constant name is the key and the constant value is the value.

static array introspectKeys()

Introspects the Enum for its keys.

Return Value

array An indexed array of constant names.

static bool hasValue(string $value)

Determines if the value is one of the Enum values of this type.

Parameters

string $value The value to compare.

Return Value

bool Whether or not the value is one of the Enum values of this type. A value of true means that the value is one of the Enum values. A value of false means that the value is NOT one of the Enum values.