Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 12-Apr-2016 23:59:59.720321
- def timestampthen(timestring):
- tt = datetime.datetime.strptime(timestring, "%d-%b-%Y %H:%M:%S.%f").timetuple()
- ut = float(calendar.timegm(tt))
- dotpos = timestring.rfind(".")
- frac = float(timestring[dotpos:])
- utfloat = float(ut + frac)
- return utfloat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement