import time


def fmt_time(timestamp):
    """Return ISO formatted time from seconds from epoch."""
    if timestamp:
        return time.strftime('%Y-%m-%dT%H:%M:%S', time.localtime(timestamp))
    else:
        return '-'