time vector function working as scalar function.