def last_active(self): if self._last_active is None: return None return TimeManager.localize(self._last_active)
def last_seen(self): ret = TimeManager.localize(self._last_seen) return ret
def time_localize(value): return TimeManager.localize(value)