Added conversion from time to int