But how does a person know how long it has been since the light was emitted? A year ago?I think your question boils down to: How is the speed of light determined?
There are some old-fashioned methods that could work quite well to look at how fast light travels, but all of them have been set aside in favor of the assumption that lightspeed is a constant (called "c").
This led to the calculation of a light year, which is a useful tool for working within the field of astronomy under the assumption of c.
Is the speed of light a constant for all wavelengths in the spectrum?