Re: [calsify] SKIP was Re: AD review of draft-ietf-calext-rscale-03

Cyrus Daboo <cyrus@daboo.name> Tue, 03 February 2015 15:08 UTC

Return-Path: <cyrus@daboo.name>
X-Original-To: calsify@ietfa.amsl.com
Delivered-To: calsify@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1BD31A0687 for <calsify@ietfa.amsl.com>; Tue, 3 Feb 2015 07:08:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.912
X-Spam-Level:
X-Spam-Status: No, score=-1.912 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CtXME8GO742t for <calsify@ietfa.amsl.com>; Tue, 3 Feb 2015 07:08:20 -0800 (PST)
Received: from daboo.name (daboo.name [173.13.55.49]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CFD071A06E9 for <calsify@ietf.org>; Tue, 3 Feb 2015 07:08:20 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by daboo.name (Postfix) with ESMTP id 123F4AC25DD; Tue, 3 Feb 2015 10:08:20 -0500 (EST)
X-Virus-Scanned: amavisd-new at example.com
Received: from daboo.name ([127.0.0.1]) by localhost (daboo.name [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id plg__ApR0c0d; Tue, 3 Feb 2015 10:08:19 -0500 (EST)
Received: from caldav.corp.apple.com (unknown [17.45.162.46]) by daboo.name (Postfix) with ESMTPSA id 6A5DEAC25CE; Tue, 3 Feb 2015 10:08:17 -0500 (EST)
Date: Tue, 03 Feb 2015 10:08:12 -0500
From: Cyrus Daboo <cyrus@daboo.name>
To: Ken Murchison <murch@andrew.cmu.edu>, Barry Leiba <barryleiba@computer.org>
Message-ID: <99B9DDB4AEFC12755724C5DD@caldav.corp.apple.com>
In-Reply-To: <54D0E2E9.2030505@andrew.cmu.edu>
References: <68FCD7D11F934509267D5915@cyrus.local> <CALaySJKQP9WjRQV2qrgfLiGwj-SQAUCF6RVcQuRrUYNpfqp17A@mail.gmail.com> <7FF77F2FE3390FFD1149E953@cyrus.local> <CALaySJK3RiXXHTq9MC4nwA4c_gZzEVDoWa96MDc7Ue4yDRgbWA@mail.gmail.com> <C80A141CD062EFF630B6D2BB@caldav.corp.apple.com> <54D0E2E9.2030505@andrew.cmu.edu>
X-Mailer: Mulberry/4.1.0b1 (Mac OS X)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; size="937"
Archived-At: <http://mailarchive.ietf.org/arch/msg/calsify/Wu4r8_67UWAUktLtFECimKGJdDM>
Cc: Calsify <calsify@ietf.org>
Subject: Re: [calsify] SKIP was Re: AD review of draft-ietf-calext-rscale-03
X-BeenThere: calsify@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <calsify.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/calsify>, <mailto:calsify-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/calsify/>
List-Post: <mailto:calsify@ietf.org>
List-Help: <mailto:calsify-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/calsify>, <mailto:calsify-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Feb 2015 15:08:23 -0000

Hi Ken,

--On February 3, 2015 at 10:02:01 AM -0500 Ken Murchison 
<murch@andrew.cmu.edu> wrote:

> It appears your previous rules properly handle the 30 Adar I (leap year)
> case, but the new rules do not.  Can we come up with rules that can model
> the 3 cases listed above?

OK thanks for looking into that. If we want to provide full flexibility to 
control what happens we would need to have two "skip" indicators, one for 
skipping invalid months and one for skipping invalid days (with the month 
one applied first, followed by the day one). So:

RRULE:FREQ=YEARLY;SKIP-MONTH=FORWARD;SKIP-DAY=FORWARD

Would match the Hebrew birthday case you found.

RRULE:FREQ=YEARLY;SKIP-MONTH=FORWARD;SKIP-DAY=BACKWARD

Would match the behavior from my last email. If we find there really is 
never a use case for the above, then we could stick with the single SKIP 
option. But lets see if we can get a confirmation on that.

-- 
Cyrus Daboo