Closed brandl-muc closed 5 years ago
I didn't add the tests yet but did the refactoring. I tested it and it seems to work but you might also want to give it a try. Especially test the Swatch Beat thing if you live in a different timezone than UTC+1. I temporarily changed my time zone to test it and it still worked correctly.
This PR is intended as first step to resolve #25
Creates new file format.js which includes the helper fromCodePoint() which was moved from extension.js and the new function format() which creates the formatted time string. This enables testing of the formatting function