from datetime import datetime


def ts(timestamp: str):
    """
    Convert a timestamp string into a datetime instance that can be saved as an
    SQL TIMESTAMP.
    :param timestamp: A timestamp string in "YYYY-MM-DD HH:MM:SS" format
    :return: A datetime object
    """
    return datetime.strptime(timestamp, '%Y-%m-%d %H:%M:%S')