def next_sanctioned_minute(self, minute):
""" Given a minute, finds the next sanctioned minute.
:param minute: integer representing a minute since reference time
:return: next sanctioned minute
"""
# next minute is a sanctioned minute
if self.is_sanctioned_time(minute) and self.is_sanctioned_time(minute+1):
return minute + 1
num_days = minute / self.minutes_in_24h
return self.day_start + (num_days + 1) * self.minutes_in_24h
It looks like the code above is always returning 9:00AM of the next day. If the minute passed in is 5:30AM, shouldn't the function return 9:00AM of the same day?
It looks like the code above is always returning 9:00AM of the next day. If the minute passed in is 5:30AM, shouldn't the function return 9:00AM of the same day?