set time to minutes