def format_time(seconds):
    # type: (int) -> str
    """
    Return *seconds* in a human-readable format (e.g. 25h 15m 45s).

    Unlike `timedelta`, we don't aggregate it into days: it's not useful when reporting logged work hours.
    """
    out = []
    if seconds > 3599:
        out.append('%sh' % (seconds // 3600))
        seconds = seconds % 3600
    if seconds > 59:
        out.append('%sm' % (seconds // 60))
        seconds = seconds % 60
    if seconds > 0:
        out.append('%ss' % seconds)
    return ' '.join(out)