code: def getDayStart(self, dateTime):
          ''' Ensure local time and get the beginning of the day '''
          return ensure_localtime(dateTime).replace(hour=0,minute=0,second=0,microsecond=0f getDayStart(self, dateTime):
          ''' Ensure local time and get the beginning of the day '''
          return ensure_localtime(dateTime).replace(hour=0,minute=0,second=0,microsecond=0)
docs: Ensure local time and get the beginning of the day