bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Other calendar types for glibc


From: Hedayat Vatankhah
Subject: Other calendar types for glibc
Date: Sun, 30 May 2004 13:33:21 +0430
User-agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20031030

                                     ITNO GOD
Hi,
   I like to add support for Iranian Islamic Calendar to glibc, so
users can choice their calendar type. It can
be a base for adding support for other calendar types too. I think it'll
be good if users can select their calendar
type (with an environment variable). What's your opinions about this idea?

   I think the best way to do this is changing strftime() and asctime()
functions, so changing to other calendar
types will occur just for users (only what is printed on the screen),
not programs. However, for programs which
want to know (for example) when is the first day of month , a new
function (like localdate()) can be added which
gets the year, month and day and returns them in the current calendar type.

   Also I have a question, where is the best place for putting Iranian
Calendar month names? In the source files
or in LC_TIME (for example putting them after other month names (after
December) or adding new keywords)?

Thanks,
Hedayat








reply via email to

[Prev in Thread] Current Thread [Next in Thread]