A day (symbol: d) is a unit of time equivalent to 24 hours and the duration of a single rotation of planet Earth with respect to the sun. It is not an SI unit but it is accepted for use with SI. It is the fundamental unit of time in the IAU system of units. The term comes from the Old English dæg. The word is also used to mean daytime, the period of daylight experienced once per day and alternating with night.
… the duration of 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-133 atom.
All planets have a rotation period relative to the fixed stars, commonly called their sidereal rotation periods.. For Earth this is 23hours and 56 minutes and 50 seconds. Earth also has a misnamed sidereal day, its rotation relative to its own precessing or moving mean vernal equinox, which is 8.4 ms smaller than its rotation period relative to the fixed stars. The rotation periods of the gas giants, which have no solid surface, are usually assumed to be the rotation of the magnetic fields residing in their deep interiors unless stated otherwise. Jupiter and Saturn also have specified equatorial and high latitude rotation periods for their cloud tops.
A day, as opposed to night, is commonly defined as the period during which sunlight directly reaches the ground, assuming that there are no local obstacles. Two effects make days on average longer than nights. The Sun is not a point, but has an apparent size of about 32 minutes of arc. Additionally, the atmosphere refracts sunlight in such a way that some of it reaches the ground even when the Sun is below the horizon by about 34 minutes of arc. So the first light reaches the ground when the centre of the Sun is still below the horizon by about 50 minutes of arc. The difference in time depends on the angle at which the Sun rises and sets (itself a function of latitude), but amounts to almost seven minutes at least.
Ancient custom has a new day start at either the rising or setting of the Sun on the local horizon (Italian reckoning, for example) The exact moment of, and the interval between, two sunrises or two sunsets depends on the geographical position (longitude as well as latitude), and the time of year. This is the time as indicated by ancient hemispherical sundials.
A more constant day can be defined by the Sun passing through the local meridian, which happens at local noon (upper culmination) or midnight (lower culmination). The exact moment is dependent on the geographical longitude, and to a lesser extent on the time of the year. The length of such a day is nearly constant (24 hours ± 30 seconds). This is the time as indicated by modern sundials.
A further improvement defines a fictitious mean Sun that moves with constant speed along the celestial equator; the speed is the same as the average speed of the real Sun, but this removes the variation over a year as the Earth moves along its orbit around the Sun (due to both its velocity and its axial tilt).
The Earth's day has increased in length over time. The original length of one day, when the Earth was new about 4.5 billion years ago, was about six hours as determined by computer simulation. It was 21.9 hours 620 million years ago as recorded by rhythmites (alternating layers in sandstone). This phenomenon is due to tides raised by the Moon which slow Earth's rotation. Because of the way the second is defined, the mean length of a day is now about 86,400.002 seconds, and is increasing by about 1.7 milliseconds per century (an average over the last 2700 years). See tidal acceleration for details.
Leap seconds are announced in advance by the International Earth Rotation and Reference Systems Service which measures the Earth's rotation and determines whether a leap second is necessary. Leap seconds occur only at the end of a UTC month, and have only ever been inserted at the end of June 30 or December 31.
For most diurnal animals, including Homo sapiens, the day naturally begins at dawn and ends at sunset. Humans, with their cultural norms and scientific knowledge, have supplanted Nature with several different conceptions of the day's boundaries. The Jewish day begins at either sunset or at nightfall (when three second-magnitude stars appear). Medieval Europe followed this tradition, known as Florentine reckoning: in this system, a reference like "two hours into the day" meant two hours after sunset and thus times during the evening need to be shifted back one calendar day in modern reckoning. Days such as Christmas Eve, Halloween, and the Eve of Saint Agnes are the remnants of the older pattern when holidays began the evening before. Present common convention is for the civil day to begin at midnight, that is 00:00 (inclusive), and last a full twenty-four hours until 24:00 (exclusive).
In ancient Egypt, the day was reckoned from sunrise to sunrise. Muslims fast from daybreak to sunset each day of the month of Ramadan. The "Damascus Document", copies of which were also found among the Dead Sea Scrolls, states regarding Sabbath observance that "No one is to do any work on Friday from the moment that the sun's disk stands distant from the horizon by the length of its own diameter," presumably indicating that the monastic community responsible for producing this work counted the day as ending shortly before the sun had begun to set. The Baha'i day begins and ends at sunset, for a calendar that has 19 days, in each of 19 months. The vernal equinox begins and ends the Baha'i year. Days in excess of 361 are called inter-calendar days.
In the United States, nights are named after the previous day, e.g. "Friday night" usually means the entire night between Friday and Saturday. This is the opposite of the Jewish pattern. Events starting at midnight are often announced as occurring the day before. TV-guides tend to list nightly programs at the previous day, although programming a VCR requires the strict logic of starting the new day at 00:00 (to further confuse the issue, VCRs set to the 12-hour clock notation will label this "12:00 AM"). Expressions like "today", "yesterday" and "tomorrow" become ambiguous during the night.
Validity of tickets, passes, etc., for a day or a number of days may end at midnight, or closing time, when that is earlier. However, if a service (e.g. public transport) operates from e.g. 6:00 to 1:00 the next day (which may be noted as 25:00), the last hour may well count as being part of the previous day (also for the arrangement of the timetable). For services depending on the day ("closed on Sundays", "does not run on Fridays", etc.) there is a risk of ambiguity. As an example, for the Dutch Railways, a day ticket is valid 28 hours, from 0:00 to 28:00 (i.e. 4:00 the next day). To give another example, the validity of a pass on London Regional Transport services is until the end of the "transport day" -- that is to say, until 4:30 am on the day after the "expiry" date stamped on the pass.