« Return to Thread: Does Such A Tag Already Exist?

Re: Does Such A Tag Already Exist?

by Brian Loomis-3 :: Rate this Message:

Reply to Author | View in Thread

I would split on spaces and then see if the array elements contain h,  
m, d, or s

then put them into your own order.

also assert that the format only has one instance of each  h, m, d, or  
s in each part.

On Jun 30, 2009, at 11:52 AM, Brad Lindsay wrote:

>
> On Jun 30, 2009, at 1:44 PM, Steve Piercy - Web Site Builder wrote:
>> I don't think it exists yet.  If you create one, please do post it  
>> to tagswap.net.
>
> I definitely will.
>
>
>> I would start off by taking the string, '1d 17h 45m 22s', split on  
>> space, then parse each element in the resulting array.
>
> I was thinking of starting by removing the spaces - making them  
> optional.  However, do you think I should enforce the logical  
> order?  In other words, should you have to put minutes before  
> seconds, or should you be able to reference them in any order? (I'm  
> leaning towards allowing them to be specified in any order)
>
> -Brad
>
> --
> This list is a free service of LassoSoft: http://www.LassoSoft.com/
> Search the list archives: http://www.ListSearch.com/Lasso/Browse/
> Manage your subscription: http://www.ListSearch.com/Lasso/
>
>

Brian Loomis
http://www.virtualrelations.us
(208) 639-2569 - 208 NEW BLOX
-- email checked daily --


--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


 « Return to Thread: Does Such A Tag Already Exist?