FeedTime::timestamp

Contents

[ hide ]

    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();
    
    This page is a Wiki! Log in or register an account to edit.

    Leave a Reply

    Your email address will not be published. Required fields are marked *