from datetime import datetime class Pokemon(): def __init__(self, name, number, location, cp, level, attack, defense, hp, iv, shiny, start_time, end_time, country): self.name = name self.number = number self.location = location self.cp = cp self.level = level self.attack = attack self.defense = defense self.hp = hp self.iv = iv self.shiny = shiny self.start_time = start_time self.end_time = end_time self.country = country def is_dispawned(self): if datetime().now() > end_time: return True return False