Add support for integer timestamps, tests, partially abstract datetime handling