emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: How to set a entry with Chinese calender?
Date: Wed, 06 May 2009 02:57:59 +0100	[thread overview]
Message-ID: <m04ovz56xk.fsf@cam.ac.uk> (raw)
In-Reply-To: 4A00CC9C.60105@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1170 bytes --]

On 2009-05-06 00:32 +0100, Wei-Wei Guo wrote:
>>> 1. The calculation of Chinese year is not 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.
>>>
>
> This bug cannot be reproduced without loading cal-china-plus for it uses the
> diary-chinese-anniversary of your package. For example.
>
> %%(diary-anniversary 11 1 1982) I'm %d years old.
> %%(diary-chinese-anniversary 12 1 1952) Dad is %d years old.
>
> Could you give me some hints on how to present the bug without your package?

How do you make calendar show the age of your father?

I put %%(diary-chinese-anniversary 12 1 1952) in my diary file and on
2008.12.27 (solar calendar), it says '56 years old', isn't this correct?

There are different ways of counting ages. The diff var in the
diary-chinese-anniversary holds the age value.

Incidentally I found a bug in diary-chinese-anniversary. Could you test
the attached version?


[-- Attachment #2: cal-china-plus.el --]
[-- Type: application/emacs-lisp, Size: 9408 bytes --]

[-- Attachment #3: Type: text/plain, Size: 66 bytes --]


Thanks,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

[-- Attachment #4: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-05-06  1:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30  7:54 How to set a entry with Chinese calender? Wei-Wei Guo
2009-05-04 14:33 ` Carsten Dominik
2009-05-04 15:07 ` Leo
2009-05-05 13:53   ` Wei-Wei Guo
2009-05-05 15:00     ` Leo
2009-05-05 23:32       ` Wei-Wei Guo
2009-05-06  1:57         ` Leo [this message]
2009-05-06  2:05           ` Leo
2009-05-06  5:27           ` Wei-Wei Guo
2009-05-06  9:38             ` Leo
2009-05-06 10:40               ` Wei-Wei Guo
2009-05-06 13:51                 ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m04ovz56xk.fsf@cam.ac.uk \
    --to=sdl.web@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).