def timestamp_from_dt(dt, epoch=datetime(<NUM_LIT>, <NUM_LIT:1>, <NUM_LIT:1>)):
delta = dt - epoch<EOL>return delta.seconds + delta.days * <NUM_LIT><EOL>
Convert a datetime to a timestamp.
https://stackoverflow.com/a/8778548/141395