The various books of the Bible were written over the course of 1500-2000 years. The Jews pretty well had their canon (OT) nailed down by the time of Jesus and finalized it around AD 90. The books of the new testament were written starting within 15-20 years of Jesus’ resurrection with most completed by about AD70, with some, like the books of John (Gospel, 1-3 Jhn & Revelation) were written near the end of the first century.
The Hebrew âcanonâ aimed to exclude âChristianâ writings, which would include many Jewish apocalyptic writings, and many wisdom writings in the Septuigent.