def _get_day_period(self):
        start = self.now.replace(hour=0, minute=0, second=0, microsecond=0)
        end = self.now.replace(hour=23, minute=59, second=59, microsecond=999999)

        return start.strftime(self.template), end.strftime(self.template)
Returns beginning and an end for a day period.
dataset/ETHPy150Open maxtepkeev/architect/architect/databases/utilities.py/DateTime._get_day_period