Moodle  2.2.1
http://www.collinsharper.com
SimplePie_Parse_Date Class Reference

Public Member Functions

 __construct ()
 parse ($date)
 add_callback ($callback)
 date_w3cdtf ($date)
 remove_rfc2822_comments ($string)
 date_rfc2822 ($date)
 date_rfc850 ($date)
 date_asctime ($date)
 date_strtotime ($date)

Static Public Member Functions

static get ()

Data Fields

 $date
 $day
 $month
 $timezone
 $day_pcre
 $month_pcre
 $built_in = array()
 $user = array()

Detailed Description

Definition at line 12061 of file simplepie.class.php.


Constructor & Destructor Documentation

Create new SimplePie_Parse_Date object, and set self::day_pcre, self::month_pcre, and self::built_in

private

Definition at line 12551 of file simplepie.class.php.


Member Function Documentation

add_callback ( callback)

Add a callback method to parse a date

public

Parameters:
callback$callback

Definition at line 12627 of file simplepie.class.php.

date_asctime ( date)

Parse C99's asctime()'s date format

protected

Returns:
int Timestamp

Definition at line 12937 of file simplepie.class.php.

date_rfc2822 ( date)

Parse RFC2822's date format

protected

Returns:
int Timestamp

Definition at line 12779 of file simplepie.class.php.

date_rfc850 ( date)

Parse RFC850's date format

protected

Returns:
int Timestamp

Definition at line 12872 of file simplepie.class.php.

date_strtotime ( date)

Parse dates using strtotime()

protected

Returns:
int Timestamp

Definition at line 12979 of file simplepie.class.php.

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))

protected

Returns:
int Timestamp

Definition at line 12647 of file simplepie.class.php.

static get ( ) [static]

Get the object

public

Definition at line 12581 of file simplepie.class.php.

Here is the caller graph for this function:

parse ( date)

Parse a date

public

Parameters:
string$dateDate to parse
Returns:
int Timestamp corresponding to date string, or false on failure

Definition at line 12599 of file simplepie.class.php.

remove_rfc2822_comments ( string)

Remove RFC822 comments

protected

Parameters:
string$dataData to strip comments from
Returns:
string Comment stripped string

Definition at line 12719 of file simplepie.class.php.


Field Documentation

$built_in = array()

Definition at line 12535 of file simplepie.class.php.

$date

Definition at line 12069 of file simplepie.class.php.

$day

Definition at line 12077 of file simplepie.class.php.

$day_pcre

Definition at line 12519 of file simplepie.class.php.

$month

Definition at line 12166 of file simplepie.class.php.

$month_pcre

Definition at line 12527 of file simplepie.class.php.

$timezone

Definition at line 12311 of file simplepie.class.php.

$user = array()

Definition at line 12543 of file simplepie.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations