[corlib] Timespan ticks formatting rewrite. Fixes #23376