types and parsers for epoch time and absolute DateTime

The above code is blocking - it's the main event loop. The httpretriever needs to run in a separate thread.