On 01/01/18 21:38, Pi wrote:
> with this code i am getting actual date from internet. I need correct
> date, because i am not sure this set on computer is right.
The first obvious pointto make is that all modern OS come
with an option to read the date/time from an internet time
server so this is
Pi wrote:
> Hi Tutor,
>
> with this code i am getting actual date from internet. I need correct
> date, because i am not sure this set on computer is right.
>
> import requests, time
>
> try:
> OnLineDate = requests.get("http://just-the-time.appspot.com";).text[:10]
> OffLineDate = tim
Hi Tutor,
with this code i am getting actual date from internet. I need correct
date, because i am not sure this set on computer is right.
import requests, time
try:
OnLineDate = requests.get("http://just-the-time.appspot.com";).text[:10]
OffLineDate = time.strftime("%Y-%m-%d")