Is a light year a measurement of time or distance?

Is a light year a measurement of time or distance?