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

Marten Gajda <marten@dmfs.org> Tue, 03 February 2015 21:50 UTC

Return-Path: <marten.gajda@googlemail.com>
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 C73C01A1A88 for <calsify@ietfa.amsl.com>; Tue, 3 Feb 2015 13:50:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.299
X-Spam-Level:
X-Spam-Status: No, score=-1.299 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, J_CHICKENPOX_47=0.6, SPF_PASS=-0.001] autolearn=no
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 ZBAqhPbWmf-2 for <calsify@ietfa.amsl.com>; Tue, 3 Feb 2015 13:50:09 -0800 (PST)
Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A84521A1A5E for <calsify@ietf.org>; Tue, 3 Feb 2015 13:50:08 -0800 (PST)
Received: by mail-wi0-f181.google.com with SMTP id fb4so24785444wid.2 for <calsify@ietf.org>; Tue, 03 Feb 2015 13:50:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type; bh=tf9cC3yse5loYSI+GmSIWp44rAJULfio3ujUNhShYfQ=; b=SHrOFh4W9iTwtn/lNiSkQ5ss46M1y3xTw4fGIB4rwMXLmFMlczJ/tyXUuNgeOJHhpb OdPTGx5h3zt9v4oc8TbyqNQF0K8YjwncYmDE0I6DTQ/vdDsZdo19PlYrGy4VJPn1jt9Q w/xIGJ2NH8CJbVt1LU85pCVlUSj2fRsw39/zDzIEyDn7qmawAnasWN8O0u3jMgFiKeXA vdJPHf3T4//qhxTjnLqbQpkI19HwooIHkyn141NjdJVV5yExwmtnNmaTGWS8QkpbIU9Y MdQcLv8MU1koJ1uknSyZYFHHxsFb3d8ugruW5U3bNXwFdNyQkpB9hZ865x6X+3s4TvD5 ITyw==
X-Received: by 10.194.88.131 with SMTP id bg3mr56618082wjb.99.1423000207292; Tue, 03 Feb 2015 13:50:07 -0800 (PST)
Received: from smtp.dmfs.org (p4FF0E66A.dip0.t-ipconnect.de. [79.240.230.106]) by mx.google.com with ESMTPSA id vh8sm34338792wjc.12.2015.02.03.13.50.05 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 03 Feb 2015 13:50:06 -0800 (PST)
Sender: Marten Gajda <marten.gajda@googlemail.com>
Received: from localhost.localdomain (unknown [89.204.138.240]) by smtp.dmfs.org (Postfix) with ESMTPSA id 4891536B; Tue, 3 Feb 2015 22:50:03 +0100 (CET)
Message-ID: <54D14289.90201@dmfs.org>
Date: Tue, 03 Feb 2015 22:50:01 +0100
From: Marten Gajda <marten@dmfs.org>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>, Ken Murchison <murch@andrew.cmu.edu>, calsify@ietf.org
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> <99B9DDB4AEFC12755724C5DD@caldav.corp.apple.com> <54D107AC.3050706@andrew.cmu.edu> <2D953326EFEE238B1CCF867E@caldav.corp.apple.com> <54D10C50.20909@andrew.cmu.edu> <54D10FDB.6070001@andrew.cmu.edu> <54D12AAC.7000202@dmfs.org> <54D12E31.4020506@andrew.cmu.edu> <55A07C99191DC58DAAA160D5@caldav.corp.apple.com> <54D1368F.2000501@dmfs.org> <6BD446FBAB897BCD227A82F1@caldav.corp.apple.com>
In-Reply-To: <6BD446FBAB897BCD227A82F1@caldav.corp.apple.com>
Content-Type: multipart/alternative; boundary="------------060301000708080608050505"
Archived-At: <http://mailarchive.ietf.org/arch/msg/calsify/xFvxcMdKPmRYna46sEOSqQVN5_g>
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 21:50:11 -0000

Am 03.02.2015 um 22:04 schrieb Cyrus Daboo:
> I think Ken's idea is that you apply the SKIP after BYMONTH only if 
> the invalid data corresponds to an invalid leap month as opposed to a 
> leap day. In which case the SKIP would not have applied after BYMONTH 
> in your example. But I think a behavior like that is going to be 
> really tricky for implementors to get right and hard to describe 
> really well without having to delve into the gory details of RRULE 
> processing.
>
Ah, got it.

So, considering the following

Applying SKIP=FORWARD after BYDAY on the following rule

FREQ=YEARLY;RSCALE=HEBREW;MONTHLY=5L;BYDAY=MO,TU,WE,TH,FR,SA,SU;SKIP=FORWARD

results in 30 instances in leap years and in non-leap years, since it 
would expand the week days in Adar I and roll them forward afterwards

Applying SKIP=FORWARD after BYMONTH but before BYDAY results in 30 
instances in leap years, but 29 instances in non-leap years, since the 
weekdays would be expanded for Adar instead of Adar I.

It's similar when the month following the leap month has more days than 
the leap month itself.

In essence, applying SKIP after all BYxxx parts won't change the number 
of instances (given they don't fall on another instance), but Ken's 
approach might do that.

Not sure what's preferable in this case.



-- 

*Marten Gajda*
Schandauer Straße 34
01309 Dresden
Germany

tel: +49 177 4427167
email: marten@dmfs.org
twitter: twitter.com/dmfs_org

VAT Reg. No.: DE269072391