changing time to seconds