SimplePie_Parse_Date::parse

Advertisement

Summery Summery

Parse a date

Syntax Syntax

SimplePie_Parse_Date::parse( string $date )

Parameters Parameters

$date

(Required) Date to parse

Return Return

(int) Timestamp corresponding to date string, or false on failure

Source Source

File: wp-includes/SimplePie/Parse/Date.php

	 * self::month_pcre, and self::built_in
	 *
	 * @access private
	 */
	public function __construct()
	{
		$this->day_pcre = '(' . implode('|', array_keys($this->day)) . ')';
		$this->month_pcre = '(' . implode('|', array_keys($this->month)) . ')';

		static $cache;
		if (!isset($cache[get_class($this)]))
		{
			$all_methods = get_class_methods($this);

			foreach ($all_methods as $method)
			{
				if (strtolower(substr($method, 0, 5)) === 'date_')
				{
					$cache[get_class($this)][] = $method;
				}

Advertisement

Advertisement

Leave a Reply