I am getting the UTC time from the following in my code and I thought it would bring back the local hour.
At a Python prompt datetime.datetime.now().hour returns 11, but in the code, it is returning 17.
At a Linux prompt, "date" returns the correct local date and time. What am I doing wrong.
At a Python prompt datetime.datetime.now().hour returns 11, but in the code, it is returning 17.
At a Linux prompt, "date" returns the correct local date and time. What am I doing wrong.
datetime.datetime.now().hour