def seconds2htime(_seconds):
    """Convert a number of seconds to a dictionary of days, hours, minutes,
    and seconds.
    >>> seconds2htime(90061)
    {"days":1,"hours":1,"minutes":1,"seconds":1}
    """
    days = int(_seconds / (24 * 3600))
    _seconds -= days * 24 * 3600
    hours = int(_seconds / 3600)
    _seconds -= hours * 3600
    minutes = int(_seconds / 60)
    _seconds -= minutes * 60
    _seconds = int(_seconds)
    return {"days": days, "hours": hours, "minutes": minutes, "seconds": _seconds}