Nobody really knows the beginning of time. Only God knows it because he is the creator of all things. However, there's a beginning or time that had started when God had created the entire universe. These includes all the planets, stars and everything that is contained within the space.
In Genesis 1:1, the Bible mentioned that in the beginning, God created the universe. This marks the very first day of time.