0

How can I get the right date of today from any free cloud even if I have set a wrong date in my machine?

### after changing date from 15th March to 4th March
import datetime
datetime.datetime.today()

datetime.datetime(2021, 3, 4, 10, 19, 45, 110118)
A.Rahman Mahmoud
  • 328
  • 1
  • 3
  • 17

1 Answers1

0

Use a ntp library to query time.windows.com or some other ntp server.

Bill Lynch
  • 80,138
  • 16
  • 128
  • 173