import time
from datetime import datetime


def datetime_from(datetime_string, format="%m/%d/%Y"):
    return datetime.strptime(datetime_string, format)


def timestamp_from(datetime_string):
    return int(time.mktime(datetime_from(datetime_string).timetuple()))
