code: def get_start_and_end_time(self, ref=None):
          
          now = time.localtime(ref)
          self.syear = now.tm_year
          self.month = now.tm_mon
          self.wday = now.tm_wday
          day_id = Daterange.get_weekday_id(self.day)
          today_morning = get_start_of_day(now.tm_year, now.tm_mon, now.tm_mday)
          tonight = get_end_of_day(now.tm_year, now.tm_mon, now.tm_mday)
          day_diff = (day_id - now.tm_wday) % 7
          morning = datetime.fromtimestamp(today_morning) + timedelta(days=day_diff)
          night = datetime.fromtimestamp(tonight) + timedelta(days=day_diff)
          return (int(morning.strftime("%s")), int(night.strftime("%s")))
docs: Specific function to get start time and end time for StandardDaterange
  
          :param ref: time in seconds
          :type ref: int
          :return: tuple with start and end time
          :rtype: tuple (int, int)