def paypaltime2datetime(s):
 return datetime.datetime(*time.strptime(s, PayPalNVP.TIMESTAMP_FORMAT)[:6])

def paypaltime2datetime ( s ) : return datetime . datetime ( * time . strptime ( s , PayPalNVP . TIMESTAMP_FORMAT ) [ : 6 ] )
convert a paypal time string to a datetime .