def ended(self): return self.datetimeEnd < Api.now()
def airingNow(self, ref=None): ref = ref or Api.now() return self.datetime <= ref < self.datetimeEnd
def secondsToStart(self): return compat.timedelta_total_seconds(self.datetime - Api.now())
def secondsSinceEnd(self): return compat.timedelta_total_seconds(Api.now() - self.datetimeEnd)
def secondsToEnd(self, start=None): start = start or Api.now() return compat.timedelta_total_seconds(self.datetimeEnd - start)