import time


def datetime_to_timestamp(d):
    """convert a datetime object to seconds since Epoch.

    Args:
        d: a naive datetime object in default timezone

    Return:
        int, timestamp in seconds

    """
    return int(time.mktime(d.timetuple()))