The light year is a unit of length in the Astronomical system of units. It uses the symbol ly.
Often confused with a unit of time as it contains the word "year", it is actually defined by the International Astronomical Union (IAU) as the amount of distance that light travels in a vacuum in one Julian year (365.25 days).
Using the speed of light (299,792,458 m/s or 'c') and the Julian year (as apposed to the Gregorian year which is 365.2425 days), we can equivalate 1 light year as 9,460,730,472,580,800 metres or ≈ 9.46 trillion kilometres.
The nanometre is a unit of length and is a multiple of the SI unit metre. It uses the symbol nm.
1 nm is equal to one one-billionth of a metre. (Nano is the prefix for one billionth). It is used to express dimensions on an atomic scale for example a helium atom has a radius of approximately 0.03nm.
The nanometre was previously known as the millimicrometre (or the millimicron).