Date Parser.
More...
|
| __construct () |
| Create new Date object, and set self\day_pcre, self\month_pcre, and self\built_in.
|
|
| add_callback ($callback) |
| Add a callback method to parse a date.
|
|
| date_asctime ($date) |
| Parse C99's asctime()'s date format.
|
|
| date_rfc2822 ($date) |
| Parse RFC2822's date format.
|
|
| date_rfc850 ($date) |
| Parse RFC850's date format.
|
|
| date_strtotime ($date) |
| Parse dates using strtotime()
|
|
| 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 separator (including more than one))
|
|
| parse ($date) |
| Parse a date.
|
|
| remove_rfc2822_comments ($string) |
| Remove RFC822 comments.
|
|
|
static | get () |
| Get the object.
|
|
|
array | $built_in = [] |
| Array of user-added callback methods.
|
|
string | $date |
| Input data.
|
|
array | $day |
| List of days, calendar day name => ordinal day number in the week.
|
|
string | $day_pcre |
| Cached PCRE for Date\$day.
|
|
array | $month |
| List of months, calendar month name => calendar month number.
|
|
string | $month_pcre |
| Cached PCRE for Date\$month.
|
|
array | $timezone |
| List of timezones, abbreviation => offset from UTC.
|
|
array | $user = [] |
| Array of user-added callback methods.
|
|
Date Parser.
@subpackage Parsing
◆ add_callback()
Date::add_callback |
( |
| $callback | ) |
|
Add a callback method to parse a date.
@final
- Parameters
-
◆ date_asctime()
Date::date_asctime |
( |
| $date | ) |
|
Parse C99's asctime()'s date format.
- Return values
-
◆ date_rfc2822()
Date::date_rfc2822 |
( |
| $date | ) |
|
Parse RFC2822's date format.
- Return values
-
◆ date_rfc850()
Date::date_rfc850 |
( |
| $date | ) |
|
Parse RFC850's date format.
- Return values
-
◆ date_strtotime()
Date::date_strtotime |
( |
| $date | ) |
|
Parse dates using strtotime()
- Return values
-
◆ date_w3cdtf()
Date::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 separator (including more than one))
- Return values
-
◆ parse()
Parse a date.
@final
- Parameters
-
- Return values
-
int | Timestamp corresponding to date string, or false on failure |
◆ remove_rfc2822_comments()
Date::remove_rfc2822_comments |
( |
| $string | ) |
|
Remove RFC822 comments.
- Parameters
-
string | $data | Data to strip comments from |
- Return values
-
string | Comment stripped string |
The documentation for this class was generated from the following file:
- lib/simplepie/src/Parse/Date.php