I am converting some date time, but I got a problem. the date time is
my_time = "2012-03-18 14:50:36.90"
my code to convert this date time is
import time
import datetime
import calendar
time_con = datetime.datetime.strptime(my_time,'%Y-%m-%d %H:%M:%S.%f')
final_time = calendar.timegm(time_con.timetuple())
when print, i got
>> print "time_con", time_con
datetime.datetime(2012, 3, 18, 14, 50, 36, 900000)
when I print final_time , I got
>> print "final_time", final_time
1332082236
I am unable to get milliseconds, and I don,t know how to deal with them properly because I need those milliseconds in my date time. I search SO but no clue. but in Can help would be great and it will save my day. thanks