Dear Assadi,
I don't know what you mean by Iranian Calendar Is it different from
Hijri Calendar ? if Not the calendar is built in windows in regional
settings
just choose Hijri Calendar,.
If Its different then go to this site
they have persian calendar component.
Bahry
Borland's Delphi Discussion List wrote:
Arjang Assadi wrote:
Rich,
The problem is to find out what Uttam is really after.
The iranian or whatever calender is easyly achived by having a Unicode
Calnder Control. How ever the displaying of dates would be a problem,
e.g. 31/02/1371 is a valid date (in dd/mm/yyyy format) but there is no
way to get the usual Calendar to accept 31st of feb for what ever
year.
So my question is that does he whant to display Iranian dates with a
calender that accepts any date values or a real iranian calender where
the characters are also in Farsi.
for a screen shot of a farsi calnder component look at
there is an open source java farsi component on source forge.
HTH
8/24/05, Rich Cooper <rcooper15 (AT) comcast (DOT) net
<mailto:rcooper15 (AT) comcast (DOT) net>wrote:
>
>>Can you send an image of an Iranian calendar? I doubt if most of
>>us have ever seen one. With an image, we may be able to offer
suggestions
>>about how to implement it.
>
My guess is that he's not looking to simply translate the
calendar; but is rather looking to implement a calendar control
for the Muslim Religious calendar, which is a lunar based
calendar that doesn't jibe in simple fashion with the Gregorian
solar calendar; it's similar to the Jewish Religious calendar,
but has different months and start date.
The only place I've seen solid logic for working with various
calendars like this is this book:
Title: Standard C Date/Time Library:
Programming the World's Calendars and Clocks
Author: Lance Latham
Publisher: CMP Books (May 1, 1998)
ISBN: 0879304960
Don't let the "Standard C" appelation put you off, it actually
uses a form of C stripped down to where it's approaching
pseudo-code and should be VERY easy to follow even for a C novice.
It's a terrific reference for anyone interested in calendars and
time keeping.
I also found a few websites that may be of interest:
http://emr.cs.uiuc.edu/~reingold/calendars.shtml
<http://emr.cs.uiuc.edu/%7Ereingold/calendars.shtml>
>
>
>
Stephen Posey
slposey (AT) concentric (DOT) net <mailto:slposey (AT) concentric (DOT) net>
>
>
>
Delphi mailing list -Delphi (AT) elists (DOT) org <mailto:Delphi (AT) elists (DOT) org>
.
Delphi mailing list -Delphi (AT) elists (DOT) org