import time


def expires_header(duration):
    """Takes a number of seconds and turns it into an expires header"""

    return time.strftime("%a, %d-%b-%Y %T GMT",
        time.gmtime(time.time() + duration))