PHP 클래스 SimplePie_Parse_Date, simplepie

파일 보기 프로젝트 열기: simplepie/simplepie 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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