from datetime import datetime


def to_timestamp(dt: str) -> int:
    """Converts a datetime formatted string to a timestamp."""
    return int(datetime.strptime(str(dt), "%Y-%m-%d-%H%M%S").timestamp())