1. datetime

  use the function datetime.now() to retrive the current date and time

  

  But we do not need such an accurate time. We can try these codes: