I like your implementation as well, but in mine you can configure the format how you want. That's why the window width is not set statically.