The farther from the sun an object is the larger the distance a planet has to orbit the sun. So if a planet is far from the sun the years would be longer. And if a planet is close to the sun it would be much hotter than a planet that is far from the sun.