The method FeedTime::timestamp
returns the Unix-epoch timestamp corresponding to the text date/time previously provided to the FeedTime constructor or to :set.
If FeedTime was completely unable to parse a date and time out of the provided text, FeedTime::timestamp
will return NULL.
Declaration
class FeedTime {
/* ... */
function timestamp () { /* ... */ }
/* ... */
}
Sample
$time = new FeedTime('March 1, 2010 12:00pm');
$ts = $time->timestamp();