human
Convert string date to timestamp in Python
assistant
Here is some code to convert string '01/12/2011' to an integer timestamp

int(datetime.datetime.strptime('01/12/2011', '%d/%m/%Y').strftime('%s'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.