PHP Класс SimplePie_Parse_Date, simplepie

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__construct ( ) Create new SimplePie_Parse_Date object, and set self::day_pcre, self::month_pcre, and self::built_in
add_callback ( callback $callback ) Add a callback method to parse a date
date_asctime ( $date ) : integer Parse C99's asctime()'s date format
date_rfc2822 ( $date ) : integer Parse RFC2822's date format
date_rfc850 ( $date ) : integer Parse RFC850's date format
date_strtotime ( $date ) : integer Parse dates using strtotime()
date_w3cdtf ( $date ) : integer 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))
get ( ) Get the object
parse ( string $date ) : integer Parse a date
remove_rfc2822_comments ( $string ) : string Remove RFC822 comments

Описание методов

__construct() публичный Метод

Create new SimplePie_Parse_Date object, and set self::day_pcre, self::month_pcre, and self::built_in
public __construct ( )

add_callback() публичный Метод

Add a callback method to parse a date
public add_callback ( callback $callback )
$callback callback

date_asctime() публичный Метод

Parse C99's asctime()'s date format
public date_asctime ( $date ) : integer
Результат integer Timestamp

date_rfc2822() публичный Метод

Parse RFC2822's date format
public date_rfc2822 ( $date ) : integer
Результат integer Timestamp

date_rfc850() публичный Метод

Parse RFC850's date format
public date_rfc850 ( $date ) : integer
Результат integer Timestamp

date_strtotime() публичный Метод

Parse dates using strtotime()
public date_strtotime ( $date ) : integer
Результат integer Timestamp

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 separator (including more than one))
public date_w3cdtf ( $date ) : integer
Результат integer Timestamp

get() публичный статический Метод

Get the object
public static get ( )

parse() публичный Метод

Parse a date
public parse ( string $date ) : integer
$date string Date to parse
Результат integer Timestamp corresponding to date string, or false on failure

remove_rfc2822_comments() публичный Метод

Remove RFC822 comments
public remove_rfc2822_comments ( $string ) : string
Результат string Comment stripped string

Описание свойств

$built_in публичное свойство

Array of user-added callback methods
public array $built_in
Результат array

$date публичное свойство

Input data
public string $date
Результат string

$day публичное свойство

List of days, calendar day name => ordinal day number in the week
public array $day
Результат array

$day_pcre публичное свойство

Cached PCRE for SimplePie_Parse_Date::$day
public string $day_pcre
Результат string

$month публичное свойство

List of months, calendar month name => calendar month number
public array $month
Результат array

$month_pcre публичное свойство

Cached PCRE for SimplePie_Parse_Date::$month
public string $month_pcre
Результат string

$timezone публичное свойство

List of timezones, abbreviation => offset from UTC
public array $timezone
Результат array

$user публичное свойство

Array of user-added callback methods
public array $user
Результат array