The TBMv2 Unit system contains facilities for formatting scalars using scales such as metric and sexagesimal time, and converting values between scale levels. It is currently only implemented in JS. If it were implemented in Python, then it could have prevented #921342. There are also several other backend situations that would benefit from using the same formatting and scaling logic as the frontend, such as dashboard sheriff emails, colab, and soundwave.
https://chromium.googlesource.com/catapult/+/master/tracing/tracing/base/unit.html