def _pb_timestamp_to_datetime(timestamp_pb):
 return (_EPOCH + datetime.timedelta(seconds=timestamp_pb.seconds, microseconds=(timestamp_pb.nanos / 1000.0)))

def _pb_timestamp_to_datetime ( timestamp_pb ) : return ( _EPOCH + datetime . timedelta ( seconds = timestamp_pb . seconds , microseconds = ( timestamp_pb . nanos / 1000.0 ) ) )
convert a timestamp protobuf to a datetime object .