Initial work on time api and time offsets