title: Python datetime class: datetime module
body: <p>I am bit confuse, how this code works?:</p>
  <pre><code>import datetime as dt
  
  d = dt.datetime.now() # 2022-09-17 16:52:15.615285
  </code></pre>
  <p>we know that <code>datetime</code> is a class of the <code>dt</code> module, but why we can access to a method even knowing we did't create an object of the class before, how this works? and how is possible?</p>