in reply to Re: Re: Multiple date ranges
in thread Multiple date ranges
Convert the timestamps to seconds (use any means neccessary).
Create a datastructure resembling
If a user has an odd number of timestamps, he's still a member.$foo{'bar'} = [ 1, # first joined 2, # left 3, # joined again 4, # left 5, # joined again ];
It's fairly obviouls how to go about querying for other values.
If the code is clean, switching to DBI needn't take more than a few days (i got a feeling its not though *shudder*).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Multiple date ranges
by AndyH (Sexton) on Feb 03, 2003 at 13:28 UTC | |
by Hofmator (Curate) on Feb 03, 2003 at 13:44 UTC | |
by Anonymous Monk on Feb 03, 2003 at 13:34 UTC | |
by Anonymous Monk on Feb 03, 2003 at 13:37 UTC |