Closed djvs closed 7 years ago
So I understand your use case more clearly, what results are you expecting to get?
That the range is "affixed" on a reference date, but happens within a range whose boundaries do not include any of its members. E.g., every tenth day, next Wednesday being included, between next Monday and October 10th.
On Mar 10, 2017 8:25 AM, "Ross Kaffenberger" notifications@github.com wrote:
So I understand your use case more clearly, what results are you expecting to get?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rossta/montrose/issues/82#issuecomment-285668237, or mute the thread https://github.com/notifications/unsubscribe-auth/AC0UZ3NwEyVebDXudAr-iGoxHwYYems-ks5rkU9bgaJpZM4MY7MM .
Got it. So far :between
has been considered shorthand for :starts
and :until
. The behavior you're looking for is not currently supported but it could be; sounds like a good feature request.
Well I'll share with you the work around that I implemented. What I did was take the reference date, for inclusion in the interval and its two boundaries, and for each of those, reason out the first or last included date in the interval, and then just count forward or backward from there for the members. Just guessing re: the Montrose implementation, it'd probably be a matter of finding the first, if any, member included in the interval, and then substituting it for the start parameter?
On Mar 10, 2017 9:09 AM, "Ross Kaffenberger" notifications@github.com wrote:
Got it. So far :between has been considered shorthand for :starts and :until. The behavior you're looking for is not currently supported but it could be; sounds like a good feature request.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rossta/montrose/issues/82#issuecomment-285677718, or mute the thread https://github.com/notifications/unsubscribe-auth/AC0UZ3Ul_RCa8r1ty6aMx7dZKwvTKp1kks5rkVmLgaJpZM4MY7MM .
Try the latest changes on master when you get a chance.
Let's say I want a range with every 3 days. I want to slice that interval up between Feb 1 and Mar 3. But I want it to be every 3 days starting on Feb 2, counting before or after:
I literally installed the library for this use case and then found out it wouldn't work. Or will it?