Clearly the other contributors to this thread are neither mathematicians nor astronomers. The sample mean for variations in the natural noon cycle amount to 24 hours as each cycle when the Sun crosses the observer's meridian is not 24 hours.
https://en.wikipedia.org/wiki/Arithmetic_mean
The average 24 hour day for Mars will also be derived from the same inequalities in the natural noon cycle but a Martian hour, Martian minute and Martian second within that average will be entirely different yet will mesh with the planet's 360 degree Latitude and Longitude system organised around the planet's Equator. This will be the structure of a GPS system for vehicles on Mars or other purposes.
You guys continue with theoretical stuff that nobody can admire but this great endeavour is for those who actually appreciate how the system on Earth was put together.