time to int