def duration_split(duration):
    """Return a tuple of 'int' : (days, hours, minutes, seconds,
    miliseconds, microseconds) coresponding to <duration> float
    expressed in seconds.
    """
    us_in_ms = 1000 * duration - int(1000 * duration)
    nb_us = us_in_ms * 1000
    us = us_in_ms / 1000.0
    duration = duration - us
    ms = duration - int(duration)
    nb_ms = ms * 1000
    duration = duration - ms
    nb_minutes, nb_seconds = divmod(duration, 60)
    nb_hours, nb_minutes = divmod(nb_minutes, 60)
    nb_days, nb_hours = divmod(nb_hours, 24)
    debug = False
    if debug:
        print('-------------------------')
        print('d=%f' % duration)
        print('us=%f' % nb_us)
        print('ms=%f' % nb_ms)
        print('s=%f' % nb_seconds)
        print('mn=%f' % nb_minutes)
    return nb_days, nb_hours, nb_minutes, nb_seconds, nb_ms, nb_us
