Re: [Tzdist] Fun with tzdata and non-Gregorian DST rules

Ken Murchison <murch@andrew.cmu.edu> Sat, 14 November 2015 01:59 UTC

Return-Path: <murch@andrew.cmu.edu>
X-Original-To: tzdist@ietfa.amsl.com
Delivered-To: tzdist@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B664F1B3718 for <tzdist@ietfa.amsl.com>; Fri, 13 Nov 2015 17:59:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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 Z_eH4j8HPFVM for <tzdist@ietfa.amsl.com>; Fri, 13 Nov 2015 17:59:06 -0800 (PST)
Received: from smtp.andrew.cmu.edu (SMTP.ANDREW.CMU.EDU [128.2.105.203]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DFAAA1B3714 for <tzdist@ietf.org>; Fri, 13 Nov 2015 17:59:05 -0800 (PST)
Received: from localhost.localdomain (cpe-76-180-151-43.buffalo.res.rr.com [76.180.151.43]) (user=murch mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.8/8.14.8) with ESMTP id tAE1wv2u005356 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 13 Nov 2015 20:58:58 -0500
Message-ID: <56469561.4040505@andrew.cmu.edu>
Date: Fri, 13 Nov 2015 20:58:57 -0500
From: Ken Murchison <murch@andrew.cmu.edu>
Organization: Carnegie Mellon University
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: Jonathan Lennox <lennox@cs.columbia.edu>
References: <5646310E.8050503@andrew.cmu.edu> <22086.15613.93267.298724@compute03.cs.columbia.edu>
In-Reply-To: <22086.15613.93267.298724@compute03.cs.columbia.edu>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-PMX-Version: 6.0.3.2322014, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2015.11.14.14817
X-SMTP-Spam-Clean: 28% ( SXL_IP_DYNAMIC 3, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1400_1499 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, FROM_EDU_TLD 0, RDNS_GENERIC_POOLED 0, RDNS_POOLED 0, RDNS_RESIDENTIAL 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, RDNS_SUSP_SPECIFIC 0, REFERENCES 0, SINGLE_URI_IN_BODY 0, __ANY_URI 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FORWARDED_MSG 0, __FW_1LN_BOT_MSGID 0, __HAS_FROM 0, __HAS_MSGID 0, __HTTPS_URI 0, __INT_PROD_LOC 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MOZILLA_MSGID 0, __MOZILLA_USER_AGENT 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_POOLED_1 0, __REFERENCES 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __SUBJ_ALPHA_NEGATE 0, __TO_MALFORMED_2 0, __URI_IN_BODY 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT 0)
X-SMTP-Spam-Score: 28%
X-Scanned-By: MIMEDefang 2.74 on 128.2.105.203
Archived-At: <http://mailarchive.ietf.org/arch/msg/tzdist/TX449KrvIWoDuCGhwIWUHwrnYsA>
Cc: Time Zone Data Distribution Service <tzdist@ietf.org>
Subject: Re: [Tzdist] Fun with tzdata and non-Gregorian DST rules
X-BeenThere: tzdist@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <tzdist.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tzdist>, <mailto:tzdist-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tzdist/>
List-Post: <mailto:tzdist@ietf.org>
List-Help: <mailto:tzdist-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tzdist>, <mailto:tzdist-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 14 Nov 2015 01:59:07 -0000

On 11/13/2015 02:41 PM, Jonathan Lennox wrote:
> On Friday, November 13 2015, "Ken Murchison" wrote to "Time Zone Data Distribution Service" saying:
>
>> I briefly looked for other zones based on lunisolar calendars and didn't come
>> up with any.  The Brazilian rules are essentially based around Easter and
>> there is no way that I have found to represent Easter as a recurrence rule in
>> iCalendar.
> Between 2005 and 2012, Israeli daylight savings time (Asia/Jerusalem) ended
> on the Hebrew calendar, which is lunisolar: the rule was that DST ended on
> the Saturday before Yom Kippur (the 10th of Tishrei).  (It started on the
> Gregorian calendar, on the Friday before April 2nd.)
>
> The law was changed in 2013, but this still seems like something you could
> try modeling with RSCALE, either for the historical period or for a
> proleptic version of the 2005 rules.

https://cyrus-test.andrew.cmu.edu/tzdist/zones/Asia/Jerusalem_Hebrew

The rule for end of DST for 2005-1012 is this:

BEGIN:STANDARD
TZNAME:IST
TZOFFSETFROM:+0300
TZOFFSETTO:+0200
DTSTART:20051009T020000
RRULE:FREQ=YEARLY;RSCALE=HEBREW;BYMONTH=1;BYMONTHDAY=3,4,5,6,7,8,9;BYDAY=SU;UNTIL=20120923T010000Z
END:STANDARD

Its also looks like 6 of the 8 transitions from 2001 to 2004 are based 
on a fixed date on the Hebrew calendar: 16 Nisan and 7 Tishrei

-- 
Kenneth Murchison
Principal Systems Software Engineer
Carnegie Mellon University