Welcome Guest, Not a member yet? Register   Sign In
how to trim timespan()
#12

[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.


Messages In This Thread
how to trim timespan() - by El Forum - 04-29-2009, 10:03 PM
how to trim timespan() - by El Forum - 04-30-2009, 12:10 AM
how to trim timespan() - by El Forum - 05-04-2009, 01:29 AM
how to trim timespan() - by El Forum - 05-04-2009, 02:27 AM
how to trim timespan() - by El Forum - 05-04-2009, 03:49 AM
how to trim timespan() - by El Forum - 05-04-2009, 04:05 AM
how to trim timespan() - by El Forum - 05-05-2009, 01:34 AM
how to trim timespan() - by El Forum - 05-05-2009, 01:53 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:00 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:03 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:06 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:28 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:35 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:39 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:40 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:43 AM
how to trim timespan() - by El Forum - 05-05-2009, 02:47 AM
how to trim timespan() - by El Forum - 05-05-2009, 03:25 AM
how to trim timespan() - by El Forum - 05-05-2009, 03:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB