add time functions to post service