pass time values to the api