restricted time to positive values