TimeDependentValue generalized by returning value generated by time_fn