(timestamp)
return dateval.isoformat()
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 getdate(timestamp):
  ''' convert timestamp of form: "Mon Mar 22 02:23:53 +0000 2010" '''
  rftime = rfc822.parsedate(timestamp)
  dateval = datetime.date(rftime[0], rftime[1], rftime[2])
  return dateval.isoformat()
def getdate ( timestamp ) : rftime = rfc822 . parsedate ( timestamp ) dateval = datetime . date ( rftime [ 0 ] , rftime [ 1 ] , rftime [ 2 ] ) return dateval . isoformat ( )