Midnight is the opposite of solar noon, which is when the Sun is highest in the sky. The time period "00:00 - 00:01" is midnight. On computer clocks, the day changes to the next day the minute(s) after midnight.
Start and end of the day change
In the world, midnight is the start of one day and the end of the last day. It iss the dividing point between two days.In the United States and Canada, digital clocks and computers usually show 12 a.m. right at midnight. However, people have to remember that any time is actually an instant. The "a.m." shown on clock displays means the 12-hour period after the instant of midnight. So when a clock says "12:00 a.m.", midnight has already passed and a new day has started. In other words, 11:59 p.m. shows until midnight; at the instant of midnight, it changes to 12:00. At the same time, the p.m. changes to a.m., but a.m. does not mean the instant of midnight which separates p.m. and a.m.
During New Year change
Midnight is also the time where you get to watch fireworks. Typically, this only happens when it is a new year, like 2023. Fireworks were originally invented in China. China remains the largest manufacturer and exporter of fireworks in the world.