title: How can I schedule my computer to shutdown at a certain time?
body: <p>I run a program which has a lot of computation that takes a lot of time for outputs. I thought that it might be a good idea if I could turn off the PC after the output has been received. so I used the code below (which works fine by the way):</p>
  
  <pre><code>def shutdown():
    import os
    os.system("shutdown /s /t 90")
  
  if __name__ == "__main__":
    main()
    shutdown()
  </code></pre>
  
  <p>But now I have another program (IDM) running simultaneously which works from 2 AM until 7 AM.<br/>
  My question is that how can I design a simple program that shut down the PC only if the PC time has passed over 7 AM. <br/>
  Can anyone help me with that ?</p>