Midnight is the transition time from one day to the next – the moment when the date changes, on the local official clock time for any particular jurisdiction. By clock time, midnight is the opposite of noon, differing from it by 12 hours. Solar midnight is the time opposite to solar noon, when the Sun is closest to the nadir, and the night is equidistant from sunset and sunrise. Due to the advent of time zones, which regularize time across a range of meridians, and daylight saving time, solar midnight rarely coincides with 12 midnight on the clock.
https://en.wikipedia.org/wiki/Midnight