implemented TimeFrame conversion
first unittest passes, second still fails, more tests to add to test it properly