Added a public subroutine for generating a string from a time interval with the largest fitting time unit that is no larger than days.