title: AttributeError: module 'datetime' has no attribute 'time'
body: <p>I am using Python 3.7 and trying to learn <code>datetime</code> module from library, but I am getting <code>AttributeError</code>. code below:</p>
  
  <pre><code>import datetime
  
  t = datetime.time(4, 20, 1)
  
  # Let's show the different components
  print(t)
  print('hour  :', t.hour)
  print('minute:', t.minute)
  print('second:', t.second)
  print('microsecond:', t.microsecond)
  print('tzinfo:', t.tzinfo)
  </code></pre>
  
  <p>As run file I get this error <code>AttributeError: module 'datetime' has no attribute 'time'</code></p>
  
  <p>Please Help me to find where I am going wrong. Thanks</p>