class SimplePie_Parse_Date


Located at : UKNOWVA_ROOT/libraries/simplepie/simplepie.php

Date Parser

Properties

string $date Input data
array $day List of days, calendar day name => ordinal day number in the week
array $month List of months, calendar month name => calendar month number
array $timezone List of timezones, abbreviation => offset from UTC
string $day_pcre Cached PCRE for SimplePieParseDate::$day
string $month_pcre Cached PCRE for SimplePieParseDate::$month
array $built_in Array of user-added callback methods
array $user Array of user-added callback methods

Methods

SimplePie_Parse_Date()

Create new SimplePieParseDate object, and set self::daypcre, self::monthpcre, and self::built_in

get()

Get the object

int
parse(string $date)

Parse a date

add_callback(callback $callback)

Add a callback method to parse a date

int
date_w3cdtf($date)

Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as well as allowing any of upper or lower case "T", horizontal tabs, or spaces to be used as the time seperator (including more than one))

string
remove_rfc2822_comments($string)

Remove RFC822 comments

int
date_rfc2822($date)

Parse RFC2822's date format

int
date_rfc850($date)

Parse RFC850's date format

int
date_asctime($date)

Parse C99's asctime()'s date format

int
date_strtotime($date)

Parse dates using strtotime()

Details

at line 13016
SimplePie_Parse_Date()

Create new SimplePieParseDate object, and set self::daypcre, self::monthpcre, and self::built_in

at line 13046
get()

Get the object

at line 13064
int parse(string $date)

Parse a date

Parameters

string $date Date to parse

Return Value

int Timestamp corresponding to date string, or false on failure

at line 13092
add_callback(callback $callback)

Add a callback method to parse a date

Parameters

callback $callback

at line 13112
int date_w3cdtf($date)

Parse a superset of W3C-DTF (allows hyphens and colons to be omitted, as well as allowing any of upper or lower case "T", horizontal tabs, or spaces to be used as the time seperator (including more than one))

Parameters

$date

Return Value

int Timestamp

at line 13184
string remove_rfc2822_comments($string)

Remove RFC822 comments

Parameters

$string

Return Value

string Comment stripped string

at line 13244
int date_rfc2822($date)

Parse RFC2822's date format

Parameters

$date

Return Value

int Timestamp

at line 13337
int date_rfc850($date)

Parse RFC850's date format

Parameters

$date

Return Value

int Timestamp

at line 13402
int date_asctime($date)

Parse C99's asctime()'s date format

Parameters

$date

Return Value

int Timestamp

at line 13444
int date_strtotime($date)

Parse dates using strtotime()

Parameters

$date

Return Value

int Timestamp