def midnights(self, utcnow=None):
        utcnow = utcnow or datetime.utcnow()
        tz = pytz.timezone(self.default_timezone)
        current_time_tz = ServerTime(utcnow).user_time(tz).done()
        midnight_tz1 = current_time_tz.replace(hour=0, minute=0, second=0, microsecond=0)
        midnight_tz_utc1 = UserTime(midnight_tz1).server_time().done()
        midnight_tz_utc2 = midnight_tz_utc1 + timedelta(days=(1 if midnight_tz_utc1 < utcnow else -1))
        return sorted([midnight_tz_utc1, midnight_tz_utc2])
Export the features from this namespace as a list of feature tokens
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/callcenter/utils.py/DomainLite.midnights--crossover with--dataset/ETHPy150Open mokelly/wabbit_wappa/wabbit_wappa/__init__.py/Namespace.export_features