from datetime import datetime


def unix_timestamp_to_datetime(timestamp):
    """Convert a Unix timestamp to datetime.

    The return value is a datetime object."""
    # http://stackoverflow.com/questions/3682748/converting-unix-timestamp-string-to-readable-date-in-python
    return datetime.fromtimestamp(timestamp)