One planet's year is defined by how long it takes the planet to complete one orbit around the Sun. So based on the distance from the Sun, one year on Earth is (of course) not the same as one year on Mercury (88 'Earth days') or Neptune (165 'Earth years').
But what if we theoretical were to move to the Sun? What would define one year on a star?