def getDHMS(seconds):
    """
    Split a given number of seconds into integer
    days, hours, minutes, and seconds.
    This function is used by `fmtDHMS()`, `fmtHMS()`, ...
    which format the time labels for createGantt().
    """
    seconds = int(seconds)
    days = int(seconds / (60 * 60 * 24))
    seconds -= 60 * 60 * 24 * days
    hours = int(seconds / (60 * 60))
    seconds -= 60 * 60 * hours
    minutes = int(seconds / 60)
    seconds -= 60 * minutes
    return [days, hours, minutes, seconds]
