A uniform algebraic characterization of temporal functional dependencies