converting time-interval to text-interval