Getting the time form Time interval