[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/openpsa/universalfeedcreator/lib/Element/ -> FeedDate.php (summary)

(no description)

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

Defines 1 class

FeedDate:: (4 methods):
  __construct()
  rfc822()
  iso8601()
  unix()


Class: FeedDate  - X-Ref

FeedDate is an internal class that stores a date for a feed or feed item.
Usually, you won't need to use this.

__construct($dateString = "")   X-Ref
Creates a new instance of FeedDate representing a given date.
Accepts RFC 822, ISO 8601 date formats (or anything that PHP's DateTime
can parse, really) as well as unix time stamps.

param: mixed $dateString optional the date this FeedDate will represent. If not specified, the current date and

rfc822()   X-Ref
Gets the date stored in this FeedDate as an RFC 822 date.

return: string a date in RFC 822 format

iso8601()   X-Ref
Gets the date stored in this FeedDate as an ISO 8601 date.

return: string a date in ISO 8601 format

unix()   X-Ref
Gets the date stored in this FeedDate as unix time stamp.

return: int a date as a unix time stamp