General aggregate functions for temporal types.
Generic transition function for aggregating temporal values