from datetime import datetime


def strunix_to_time(timestamp_ms):
    """ Takes a str representing a timestamp in ms and converts it 
    to an element of type datetype
    :params timestamp_ms: str; timestamp in unixtime in ms
    :return datetime; 
    """
    return datetime.fromtimestamp(float(timestamp_ms[:10]))