distanceA light-year measures distance, while the light shows the past
A light-year is the distance light travels in vacuum during one year, not a unit of time. A star roughly ten light-years away is seen through light that travelled for roughly ten years. Looking across space therefore means receiving older information, although distance and travel time need more careful treatment on cosmological scales.