(timestamp)
return str(rftime[3])
convert timestamp of form: "Mon Mar 22 02:23:53 +0000 2010"
convert timestamp of form: "Mon Mar 22 02:23:53 +0000 2010"
convert timestamp of form : Mon Mar 22 02 : 23 : 53 + 0000 2010
def gethour(timestamp):
  ''' convert timestamp of form: "Mon Mar 22 02:23:53 +0000 2010" '''
  rftime = rfc822.parsedate(timestamp)
  return str(rftime[3])
def gethour ( timestamp ) : rftime = rfc822 . parsedate ( timestamp ) return str ( rftime [ 3 ] )