from datetime import datetime


def get_datetime_from_timestamp(timestamp):
    """Return datetime from unix timestamp"""
    try:
        return datetime.fromtimestamp(int(timestamp))
    except:
        return None