dev.emsdn.com

Join About
Home SITEMAP Most Recent

Delphi

Home »» Delphi [Programming]
Thread Profile: Iranian calender


Iranian calender

How we can use Iranian calendar in our application. I mean to say I want
to display Iranian calendar in user interface similar to TCalender
object, save then in MS access database and then print the Iranian date
in report and other user interface.
Regards
Uttam
Delphi mailing list -Delphi (AT) elists (DOT) org


total 8 Comments Similar Thread
  • 8Answer
  • Total

at [2008-5-10 19:06:14]


TCalender class is a wrapper for calender control that comes with windows.
What do you get when you change the locals to Iran on your system?

Kind Regards

Arjang Assadi

8/23/05, Uttam Kumar Kotdiya <Uttam.Kotdiya (AT) entity-solutions (DOT) comwrote:
How we can use Iranian calendar in our application. I mean to say I want
to display Iranian calendar in user interface similar to TCalender
object, save then in MS access database and then print the Iranian date
in report and other user interface.

Regards
Uttam

Delphi mailing list -Delphi (AT) elists (DOT) org

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 1No.

at [2008-5-10 19:07:14]


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.

HTH,
Rich

Message
From: "Uttam Kumar Kotdiya" <Uttam.Kotdiya (AT) entity-solutions (DOT) com>
To: <indug (AT) yahoogroups (DOT) com>; <delphi (AT) elists (DOT) org>
Sent: Tuesday, August 23, 2005 5:07 AM
Subject: Iranian calender

How we can use Iranian calendar in our application. I mean to say I want
to display Iranian calendar in user interface similar to TCalender
object, save then in MS access database and then print the Iranian date
in report and other user interface.

Regards
Uttam

Delphi mailing list -Delphi (AT) elists (DOT) org

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 2No.

at [2008-5-10 19:08:21]


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) netwrote:
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.

HTH,
Rich

Message
From: "Uttam Kumar Kotdiya" <Uttam.Kotdiya (AT) entity-solutions (DOT) com>
To: <indug (AT) yahoogroups (DOT) com>; <delphi (AT) elists (DOT) org>
Sent: Tuesday, August 23, 2005 5:07 AM
Subject: Iranian calender

How we can use Iranian calendar in our application. I mean to say I want
to display Iranian calendar in user interface similar to TCalender
object, save then in MS access database and then print the Iranian date
in report and other user interface.

Regards
Uttam

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 3No.

at [2008-5-10 19:09:26]


A better Control is found here

8/25/05, Arjang Assadi <arjang.assadi (AT) gmail (DOT) comwrote:
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) netwrote:
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.

HTH,
Rich

Message
From: "Uttam Kumar Kotdiya" <Uttam.Kotdiya (AT) entity-solutions (DOT) com>
To: <indug (AT) yahoogroups (DOT) com>; <delphi (AT) elists (DOT) org>
Sent: Tuesday, August 23, 2005 5:07 AM
Subject: Iranian calender
--
How we can use Iranian calendar in our application. I mean to say I want
to display Iranian calendar in user interface similar to TCalender
object, save then in MS access database and then print the Iranian date
in report and other user interface.

Regards
Uttam
--

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 4No.

at [2008-5-10 19:10:25]


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) netwrote:

>>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

Stephen Posey
slposey (AT) concentric (DOT) net

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 5No.

at [2008-5-10 19:11:18]


8/25/05, Stephen Posey <slposey (AT) concentric (DOT) netwrote:
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.
In that case Iranian Calendar wont suite that task.
Iranian Calender is Solar and non religious, it is based on the 4
seasons and there used to have start date of 500BC, the new Iranian
Calendar coincides with 662 AD. which is the start of Muslim calender.
Without him saying what he really is after there is no point in
providing anymore answers to an ambiguous question.

Kind Regards
Arjang Assadi

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 6No.

at [2008-5-10 19:12:22]


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


  • 7No.

at [2008-5-10 19:13:20]


Arjang Assadi wrote:
8/25/05, Stephen Posey <slposey (AT) concentric (DOT) netwrote:

>>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.


In that case Iranian Calendar wont suite that task.
Iranian Calender is Solar and non religious, it is based on the 4
seasons and there used to have start date of 500BC, the new Iranian
Calendar coincides with 662 AD. which is the start of Muslim calender.
Without him saying what he really is after there is no point in
providing anymore answers to an ambiguous question.

Agreed, we should wait for clarification rather than speculating
in the dark.

Stephen Posey
slposey (AT) concentric (DOT) net

Delphi mailing list -Delphi (AT) elists (DOT) org


  • 8No.