* refactor(formatter): merge the special method of timespan into formatter * test: add test for formatte