human
What is a good Python function to datetime with tzinfo from timestamp.
assistant
Here is a Python function to datetime with tzinfo from timestamps

import datetime

def datetime_from_timestamp(timestamp):
    """
    Converts timestamp to datetime object with tzinfo
    :param timestamp: timestamp
    :return: datetime object with tzinfo
    """
    return datetime.datetime.fromtimestamp(timestamp)

# Enter the timestamp
timestamp = 1536000000

# Calling the function
print((datetime_from_timestamp(timestamp)))

#Example Output
# 2018-09-03 18:40:00

#Remember to inspect code for bugs.