From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei-Wei Guo Subject: Re: Re: How to set a entry with Chinese calender? Date: Tue, 05 May 2009 21:53:12 +0800 Message-ID: <4A0044C8.7010107@gmail.com> References: <49F9591D.2010101@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1Kuj-0007R5-KJ for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:42:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1Kud-0007Nd-Mw for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:42:27 -0400 Received: from [199.232.76.173] (port=52274 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1Kud-0007NP-J5 for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:42:23 -0400 Received: from rv-out-0708.google.com ([209.85.198.250]:48377) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1Kub-000654-V3 for emacs-orgmode@gnu.org; Tue, 05 May 2009 09:42:22 -0400 Received: by rv-out-0708.google.com with SMTP id f25so1936650rvb.2 for ; Tue, 05 May 2009 06:42:20 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Leo Cc: emacs-orgmode@gnu.org Leo 写道: Hi Leo, > > I ran into that question and have written a small package here: > > http://article.gmane.org/gmane.emacs.sources/3066/match=diary+chinese > Your package is great! And I notice two bugs. I think it's not bugs of your package. 1. The calculation of Chinese year is right. For example, if I born in 1982.11 of *solar* calendar and my father born in 1952.12 of *lunar* calendar. My age is calculated as 27 and my father's age is calculated as 58, which should be 57. Because my father's birthday is in the next year of *solar* calender, his age is calculated one year more. 2. Month of Chinese date is not right. Due to the conversion of http://www.nongli.com/item3/searchNL.asp, 2009.5.5 is "己丑 戊辰 庚戌", but Emacs Calender gives : Chinese date: Cycle 78, year 26 (己丑), month 4 (己巳), day 11 (庚戌) It seems it converts one month late. Best wishes, Wei-Wei