Historians currently assume the Bible was written between 720 BCE and 587 BCE, between the destruction of the Northern Kingdom and the destruction of Jerusalem.
The revelation continues as the world progressed and however the Torah was emended or edited after Sinai was part of revelation.