9.461 trillion kilometres!
A light-year is a unit of length: the distance light travels through empty space in one year, about 9.46 trillion kilometers. Astronomers use it to describe the enormous distances between stars and galaxies. Despite its name, a light-year measures distance, not time.
The International Astronomical Union (IAU), which maintains astronomy's special units, defines the light-year as the distance light travels in a vacuum in one Julian year. A Julian year is exactly 365.25 days of 86,400 seconds each, or 31,557,600 seconds. Light in a vacuum travels exactly 299,792,458 meters per second, about 300,000 kilometers per second.
Multiplying the two gives exactly 9,460,730,472,580.8 kilometers, a little under 9.5 trillion. The IAU also gives it as about 63,241 astronomical units, where one astronomical unit is the average distance from Earth to the Sun. Because the definition fixes both the speed and the year, a light-year has no uncertainty at all.
To define the light-year, the IAU first had to say exactly what a year is, because there are several kinds of year of slightly different lengths. The IAU counts a year as a Julian year unless another kind is named.
Professional astronomers more often use the parsec, which is about 3.26 light-years. The parsec is defined by an angle: it is the distance at which one astronomical unit would appear one arcsecond wide, where an arcsecond is 1/3,600 of a degree. The IAU describes the parsec as the usual choice for studying the Milky Way.
The IAU notes that the light-year is sometimes used in scientific papers, but that it appears mostly in writing for the general public. Within the Solar System, astronomers use the astronomical unit instead. Beyond it, the IAU says, distances are so great that the astronomical unit becomes too cumbersome.
Because light takes time to travel, distant objects are seen as they were when their light left them. Sunlight takes about 8.3 minutes to reach Earth, so the Sun always appears as it was about 8.3 minutes earlier.
The same is true on much larger scales. The Andromeda Galaxy, the nearest large galaxy, is about 2.5 million light-years away. The light seen from it today left it about 2.5 million years ago.