Hi,
Is there general function to be used to convert the second to duration format, like 3680 seconds convert as 1 hour 1 min 20 second. Ideally it could be based on
pattern, like 1 week 2 day , or 2 hour 30 min (based on the second value to decide the format to fit the UI width , for example, if data is too long like 1 year 2 month 3 day 4 hour 5 min 6 sec, it only show 1 year 2 month, but for the 63 second just 1 min 3 sec), or some similar function.
The function may not be very complex, and could be write by own. But I am wondering if there is existing function which could be used directly.
Thanks