The phrase
"light years" refers to a unit of distance, not time. It measures how far light can travel in a year, which is about 5.88 trillion miles (9.46 trillion kilometers). It is used to describe vast distances in outer space because regular units like miles or kilometers are too small to measure them.
Full definition