Is a light year a measurement of time or distance?

Science Trivia: Is a light year a measurement of time or distance?