import time


def datetime_format(epoch):
    """
    Convert a unix epoch in a formatted date/time string
    """
    datetime_fmt = '%Y-%m-%dT%H:%M:%SZ'
    return time.strftime(datetime_fmt, time.gmtime(epoch))