from datetime import datetime


def parse_timestamp(datetime_repr: str) -> datetime:
    """Construct a datetime object from a string."""
    return datetime.strptime(datetime_repr, '%b %d %Y %I:%M%p')