old_contents: import dateutil.parser
  
  from datetime import datetime
  from dateutil.tz import tz
  
  
  class TimeWarriorInterval(object):
      def __init__(self, start, end, tags):
          self.__start = self.__get_local_datetime(start)
          self.__end = self.__get_local_datetime(end)
          self.__tags = tags
  
      def __eq__(self, other):
          return self.__start == other.get_start() \
              and self.__end == other.get_end() \
              and self.__tags == other.get_tags()
  
      def get_start(self):
          return self.__start
  
      def get_end(self):
          return self.__end
  
      def get_tags(self):
          return self.__tags
  
      def get_date(self):
          return datetime(self.__start.year, self.__start.month, self.__start.day)
  
      def __get_local_datetime(self, datetime_string):
          from_zone = tz.tzutc()
          to_zone = tz.tzlocal()
  
          date = dateutil.parser.parse(datetime_string)
          date.replace(tzinfo=from_zone)
  
          return date.astimezone(to_zone)
  
new_contents: import dateutil.parser
  
  from datetime import datetime
  from dateutil.tz import tz
  
  
  class TimeWarriorInterval(object):
      def __init__(self, start, end, tags):
          self.__start = self.__get_local_datetime(start)
          self.__end = self.__get_local_datetime(end)
          self.__tags = tags
  
      def __eq__(self, other):
          return self.__start == other.get_start() \
              and self.__end == other.get_end() \
              and self.__tags == other.get_tags()
  
      def get_start(self):
          return self.__start
  
      def get_end(self):
          return self.__end
  
      def get_tags(self):
          return self.__tags
  
      def is_open(self):
          return False
  
      def get_date(self):
          return datetime(self.__start.year, self.__start.month, self.__start.day)
  
      def __get_local_datetime(self, datetime_string):
          from_zone = tz.tzutc()
          to_zone = tz.tzlocal()
  
          date = dateutil.parser.parse(datetime_string)
          date.replace(tzinfo=from_zone)
  
          return date.astimezone(to_zone)
  
subject: Add method to query if interval is open