Add support for Unix timestamps in API