How datetime.datetime.now() works without internet connection?
问题 In python, by importing datetime module and using various functions of class datetime.datetime we could get basic dates with formatting and even date arithmetic for deployment. For example, datetime.datetime.now() will return today's date. But, today when I run this program there was no internet connection in my computer but still it outputs today's date. So, how datetime.datetime.now() could return proper date? Is the algorithm automatically increment after 24 hours time ? 回答1: tl;dr