[eluser]xwero[/eluser]
What is it what you want? When i read
Quote:i need to trim down the result of timespan()...
so if the interval totals to a day(s)
I read that as wanting to transform 6 Days, 8 Hours, 7 Minutes to 6 Days. Which means you have to alter the function to define the last time segment to output.
When i read
Quote:it will only show the day
I interpret it you want to get the time segments individually. For that you could alter the function to output an array instead of a string because it would be inefficient to call the function as many times as there are time segments. But this last solution brings with it a whole bunch of checks.