I have a mysql database that store timestamp in a varbinary column and my goal is to convert this to unix time stamp so I can do a elapse time between two time slots.
+---------+------------+-------------------+----------------+--------------------------+
| some_id | some_name | user_registration | some_count | some_value_yes_no |
+---------+------------+-------------------+----------------+--------------------------+
| some_id | some_user | 20091129060140 | 2685 | 1 |
+---------+------------+-------------------+----------------+--------------------------+
Here the user_registration is the mysql varbinary(14), assume after connecting and extracting this data, I have the user_registration stored in a variable from python side,
...
timestamp = row['user_registration']
how can I convert this to a unix time stamp to so I can do a time difference between a another time stamp like this. I looked at the http://docs.python.org/2/library/datetime.html but I couldn't find any example like this.