import datetime
import pytz
time_zone=pytz.timezone('America/Chicago')
a=datetime.datetime(2019,1,1,0,0,0,tzinfo=time_zone)
b=datetime.datetime.fromtimestamp(a.timestamp(),time_zone)
print("The value of a is ",a)
print("The value of b is ",b)
I am trying to convert a local time user input in the form of mm/dd/yyyy into unix and then back, but I can't seem to get these two to agree after converting to unix.