The time in Asia/Kolkata time zone is 8/8/20, 8:00 (%m/%d/%y, %H:%M format). I first converted the datetime to UTC timezone and then changed to milliseconds. I compared the results to online (https://www.epochconverter.com/), there is some difference in the value.
Asia/Kolkata Timezone datetime (input): 8/8/20, 8:00
UTC Timezone datetime: 8/8/20, 2:30
calculated value of milliseconds since Epoch: 1596873600000
actual value of milliseconds since Epoch: 1596853800000
Python Script:
my_time = datetime.strptime(timerangestart, '%m/%d/%y, %H:%M')
timestart = my_time.replace(tzinfo=timezone.utc).timestamp()
timestart = timestart * 1000
what is it that I am doing wrong? Can I get some help on this?