from datetime import datetime


def timestamp2datetime(unixtime : float):
    """
    Convert unix timestamp to datetime
    :param unixtime: Unix timestamp to be converted in a datetime
    :type unixtime: int
    
    :return: datetime
    :rtype: datetime
    """
    if unixtime and unixtime > 0:
        result = datetime.fromtimestamp(unixtime)
    else:
        result = None
    return result