added temporal function to capi

added temporal functions to c api. I have tested this with my erlang wrapper.