class_docstr: The TimeLogicAdapter returns the current time.
  
  :kwargs:
      * *positive* (``list``) --
        The time-related questions used to identify time questions.
        Defaults to a list of English sentences.
      * *negative* (``list``) --
        The non-time-related questions used to identify time questions.
        Defaults to a list of English sentences.
code: def __init__(self, chatbot, **kwargs):
      super().__init__(chatbot, **kwargs)
      try:
          from nltk import NaiveBayesClassifier
      except ImportError:
          message = (
              'Unable to import "nltk".\n'
              'Please install "nltk" before using the TimeLogicAdapter:\n'
              "pip3 install nltk"
          )
          raise OptionalDependencyImportError(message)
  
      self.positive = kwargs.get(
          "positive",
          [
              "what time is it",
              "hey what time is it",
              "do you have the time",
              "do you know the time",
              "do you know what time it is",
              "what is the time",
          ],
      )
  
      self.negative = kwargs.get(
          "negative",
          [
              "it is time to go to sleep",
              "what is your favorite color",
              "i had a great time",
              "thyme is my favorite herb",
              "do you have time to look at my essay",
              "how do you have the time to do all this" "what is it",
          ],
      )
  
      labeled_data = [(name, 0) for name in self.negative] + [
          (name, 1) for name in self.positive
      ]
  
      train_set = [
          (self.time_question_features(text), n)
          for (text, n) in labeled_data
      ]
  
      self.classifier = NaiveBayesClassifier.train(train_set)
  
file_path: ChatterBot/chatterbot/logic/time_adapter.py
imports: from datetime import datetime
  from chatterbot.logic import LogicAdapter
  from chatterbot.conversation import Statement
  from chatterbot.exceptions import OptionalDependencyImportError
label_desc: Use image node_id 1 to create a new TimeLogicAdapter object from inherited base classes: LogicAdapter with example: obj = TimeLogicAdapter(chatbot)