from datetime import datetime


def getDateTime(timestamp):
    """
        Converts to datetime from timestamp
        
        :param timestamp: string (or integer) value
        :return: datetime value
    """
    return datetime.fromtimestamp(int(timestamp)/1e3)