Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401] [Versions 401 and 402] [Versions 401 and 403]

SimplePie A PHP-Based RSS and Atom Feed Framework. Takes the hard work out of managing a complete RSS/Atom solution.

Author: Ryan Parman
Author: Sam Sneddon
Author: Ryan McCue
Copyright: 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
File Size: 1027 lines (21 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Parse_Date:: (10 methods):
  __construct()
  get()
  parse()
  add_callback()
  date_w3cdtf()
  remove_rfc2822_comments()
  date_rfc2822()
  date_rfc850()
  date_asctime()
  date_strtotime()


Class: SimplePie_Parse_Date  - X-Ref

Date Parser

__construct()   X-Ref
Create new SimplePie_Parse_Date object, and set self::day_pcre,
self::month_pcre, and self::built_in


get()   X-Ref
Get the object


parse($date)   X-Ref
Parse a date

param: string $date Date to parse
return: int Timestamp corresponding to date string, or false on failure

add_callback($callback)   X-Ref
Add a callback method to parse a date

param: callback $callback

date_w3cdtf($date)   X-Ref
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: int Timestamp

remove_rfc2822_comments($string)   X-Ref
Remove RFC822 comments

param: string $data Data to strip comments from
return: string Comment stripped string

date_rfc2822($date)   X-Ref
Parse RFC2822's date format

return: int Timestamp

date_rfc850($date)   X-Ref
Parse RFC850's date format

return: int Timestamp

date_asctime($date)   X-Ref
Parse C99's asctime()'s date format

return: int Timestamp

date_strtotime($date)   X-Ref
Parse dates using strtotime()

return: int Timestamp