SimplePie_Parse_Date
class SimplePie_Parse_Date
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
Create new SimplePieParseDate object, and set self::daypcre, self::monthpcre, and self::built_in
Get the object
Parse a date
Add a callback method to parse a 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))
Remove RFC822 comments
Parse RFC2822's date format
Parse RFC850's date format
Parse C99's asctime()'s date format
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
at line 13092
add_callback(callback $callback)
Add a callback method to parse a date
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))
at line 13184
string
remove_rfc2822_comments($string)
Remove RFC822 comments
at line 13244
int
date_rfc2822($date)
Parse RFC2822's date format
at line 13337
int
date_rfc850($date)
Parse RFC850's date format
at line 13402
int
date_asctime($date)
Parse C99's asctime()'s date format
at line 13444
int
date_strtotime($date)
Parse dates using strtotime()