I want to change GMT Zone(date and time) to EPOCH Time stamp in milliseconds.
For example:
I want to take current system date and by default the time will be "16:00:00" and convert this date & time like below:
If Date & Time is "12/15/2015 16:00:00" GMT to be converted to "1450195200000"
Here the code i used to achieve but no solution:
import datetime
dt = time.strftime("%d/%m/%Y ")
ti = "16:00:00"
dt_ti = dt + ti
pattern = '%d/%m/%Y %H:%M:%S'
epoch = int(time.mktime(time.strptime(dt_ti, pattern)))
print (epoch)
output is 1450175400
But i want to achieve is this 1450195200000
Please help me on this.