from datetime import datetime


def datetime_to_timestamp(dt: datetime) -> int:
    """
    Converts a datetime instance to a timestamp
    :param dt: datetime instance (local time zone)
    :return: timestamp in microseconds
    """
    return int(dt.timestamp() * 1000000)