\SimplePie_Parse_Date
Date Parser
Synopsis
class SimplePie_Parse_Date
{
- // members
- public $date;
- public array $day = ;
- public array $month = ;
- public array $timezone = ;
- public $day_pcre;
- public $month_pcre;
- public array $built_in = ;
- public array $user = ;
- // methods
- public void __construct()
- public static void get()
- public int parse()
- public void add_callback()
- public int date_w3cdtf()
- public string remove_rfc2822_comments()
- public int date_rfc2822()
- public int date_rfc850()
- public int date_asctime()
- public int date_strtotime()
Members
public
- $built_in
—
array
Array of user-added callback methods - $date
—
string
Input data - $day
—
array
List of days, calendar day name => ordinal day number in the week - $day_pcre
—
string
Cached PCRE for SimplePie_Parse_Date::$day - $month
—
array
List of months, calendar month name => calendar month number - $month_pcre
—
string
Cached PCRE for SimplePie_Parse_Date::$month - $timezone
—
array
List of timezones, abbreviation => offset from UTC - $user
—
array
Array of user-added callback methods
Methods
public
- __construct() — Create new SimplePie_Parse_Date object, and set self::day_pcre, self::month_pcre, and self::built_in
- add_callback() — Add a callback method to parse a date
- date_asctime() — Parse C99's asctime()'s date format
- date_rfc2822() — Parse RFC2822's date format
- date_rfc850() — Parse RFC850's date format
- date_strtotime() — Parse dates using strtotime()
- date_w3cdtf() — 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))
- get() — Get the object
- parse() — Parse a date
- remove_rfc2822_comments() — Remove RFC822 comments