You could look at how the DateTime and TimeSpan classes in the RTClib library handle it. You could even just use those classes.
You could look at how the DateTime and TimeSpan classes in the RTClib library handle it. You could even just use those classes.