[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/SimplePie/src/Parse/ -> Date.php (summary)

(no description)

File Size: 965 lines (26 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

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


Class: Date  - X-Ref

Date Parser

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


get()   X-Ref
Get the object

return: Date

parse(string $date)   X-Ref
Parse a date

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

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

return: void
param: callable $callback

date_w3cdtf(string $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|false Timestamp
param: string $date

remove_rfc2822_comments(string $string)   X-Ref
Remove RFC822 comments

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

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

return: int|false Timestamp
param: string $date

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

return: int|false Timestamp
param: string $date

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

return: int|false Timestamp
param: string $date

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

return: int|false Timestamp
param: string $date



Generated : Thu Sep 18 08:20:05 2025 Cross-referenced by PHPXref