create d3time formatter and tests for it