pub fn is_new(&self, item: &Item) -> bool {
    match item.pub_date {
      Some(ref v) => {
        let tstmp = match DateTime::parse_from_rfc2822(v) {
          Ok(ret) => ret.timestamp(),
          Err(err) => {
            perror!("In streamrss::is_new:", err);
            return false;
          }
        };
        if tstmp > self.last_update.timestamp() {
          return true;
        }
        return false;
      }
      None => false
    }
  }
/// Compare two timestamps to see if an article has already been read
Compare two timestamps to see if an article has already been read
Compare two timestamps to see if an article has already been read
pub fn is_new(&self, item: &Item) -> bool {
    match item.pub_date {
      Some(ref v) => {
        let tstmp = match DateTime::parse_from_rfc2822(v) {
          Ok(ret) => ret.timestamp(),
          Err(err) => {
            perror!("In streamrss::is_new:", err);
            return false;
          }
        };
        if tstmp > self.last_update.timestamp() {
          return true;
        }
        return false;
      }
      None => false
    }
  }
pub fn is_new ( & self , item : & Item ) -> bool { match item . pub_date { Some ( ref v ) => { let tstmp = match DateTime :: parse_from_rfc2822 ( v ) { Ok ( ret ) => ret . timestamp ( ) , Err ( err ) => { perror ! ( " " err ) ; return false ; } } ; if tstmp > self . last_update . timestamp ( ) { return true ; } return false ; } None => false } }
Compare two timestamps to see if an article has already been read
Compare two timestamps to see if an article has already been read
&self
item
&Item
&self
item
&Item