The Oral Torah, the Talmud, which is a very detailed and complete explanation of the laws in the Torah, was passed down orally until the time of the Roman siege. The Talmud faced the problem of the information being lost after the Jews were exiled from their land. To preserve the Oral Law, the sages in Babylon constructed the written Talmud that we study today. The event was miraculous and proved to be very accurate, guided by Hashem all the way. Rabbi Judah the Prince gathered Rabbis from all over who had knowledge of the Oral Torah. He found that even though they were strangers to each other, they had the exact same details handed down through their Rabbis. The writing of the laws, or the Mishnayot, was finished around the year 3950 (190 CE). The extensive discussion by the sages codifying the law, or as it is known the Gamorah, was completed around the year 4260 (500 CE). The timing is very significant for a couple of reasons. There is a Gamorah (Tractate Sanhedrin) that tells that the earliest time that the Messiah can appear is the year 4250 (490 CE) about 500 years after you-know-who. We also are told that the information in the Talmud was only for the Jews, considering that it gets extensively into the 613 commandments that only Jews are obligated to fulfill. There is no coincidence that the information was handed down orally until after the time that the Xtian religion and the church doctrine were established (after The First Council of Nicaea of 325). It was not for the world but only for the Jews. We see why the third 2K years became the time of the Messiah, from about the year 4000 to the end at 6000.
Anyway, getting back to the timeline. Now we are in the year 5772 which means that everything has to be completed in the next 228 years which is called the Messianic age. The return to Israel, the land producing, the final stages of Gog and Magog, the ingathering of the exile (including the 10 lost tribes), the coming of the Messiah, the Third Temple, Judgment day (the too late date) and the Resurrection of the Dead all will occur by the year 6000.
We have one other bit of information that really makes all this exiting and gives us much better detail of our schedule of events. The holy Zohar tells us that history is folded (I was wondering why this blog post is called the folding of history) and that the 210 years that we were in Egypt followed by 40 years in the desert is prophecy for the end of time. The folding of the calendar means that the last 210 years will be the time of the Resurrection of the Dead and that the other events will occur within the 40 years before that. Translated into actual years, 210 years before the year 6000 is 5790 (2030). The 40 years before that, means that the events already have started in the year 5750 (1990).
What happens after 6K? The next 1000 years, 6000 to 7000 are called the years of Shabbat (we are going to need a really big cholent pot). This period is not totally understood because we will not be on Earth but in Heaven. Since time as we know it will be over, the 1000 years may be a single day in Heaven, the World of Souls (Psalms 90:4: 1000 years is but one day in Your eyes). At the year 7000 the body and soul will be reunited and brought back to what is called the World-to-Come. A final judgment will occur at that time to determine the eternity of each of us. As with Heaven, the World-to-Come will be many levels of holiness – with those more deserving being closer to Hashem. There are also stages of the World-to-Come that are beyond the scope of this discussion. The years 7000 to 8000 will be followed by additional rectification in the years 8000 to 9000 and even further happenings 9000 to 10000. Once again, just know that all is for the good. Those who are worthy will be experiencing a future that is so tremendous it is beyond our human comprehension. Hashem takes good care of those who follow His ways.