Convert python datetime to epoch with strftime
I have a time in UTC from which I want the number of seconds since epoch.
I have a time in UTC from which I want the number of seconds since epoch.
I have a Python datetime object that I want to convert to unix time, or seconds/milliseconds since the 1970 epoch.
I have used a ruby script to convert iso time stamp to epoch, the files that I am parsing has following time stamp structure:
In the code below, I am calculating now epoch and beginning of current day epoch.