Re: farsi calendar components
On Thu, 13 Mar 2003, Paul Hastings wrote: does anybody know of any java farsi calendar components? thanks. Do you mean the Persian calendar (as used in Iran and Afghanistan, also known as the solar Islamic calendar or Hejri-e Shamsi), or a Gregorian calendar translated to Persian (Farsi)? roozbeh
Re: Re: farsi calendar components
On Thu, 13 Mar 2003 [EMAIL PROTECTED] wrote: Do you mean the Persian calendar (as used in Iran and Afghanistan, also known as the solar Islamic calendar or Hejri-e Shamsi), or a Gregorian the Persian one. Some C code is available with an LGPL license at: http://www.farsiweb.info/jalali/jalali.c You can easily port it to Java if you only need the conversion to and from Gregorian. But if you need a complete class that's inherited from a proper calendar class, I don't know of any. I'm working on one for ICU in my free time, but I don't have any release date. On the same topic: * The above code is not the official leap year algorithm used in Iran, but it is as close as we can get for the moment. Some parts of the official algorithm used in Iran is private and is only known to the calendar authorities. We are working on finding and releasing that to the public (but I guess you needn't worry, as the first date that may make a difference, is some date in 2057). * The official leap year algorithm used in Afghanistan is different and very simple: first day of every Persian year is March 21, so the leap years are synchronized to the Gregorian ones to some degree. Thus, there are sometimes a one-day difference between the Iranian calendar and the Afghan calendar. That may get changed in a short while, as there are plans for an official synchronized Persian calendar of Iran and Afghanistan that doesn't depend on a geographic base of a certain latitude and longitude. roozbeh
Re: Re: Re: farsi calendar components
thanks for your reply. Some C code is available with an LGPL license at: http://www.farsiweb.info/jalali/jalali.c yes i've heard of some code floating about for that but i was really wishing for a real calendar class. calendar class, I don't know of any. I'm working on one for ICU in my free time, but I don't have any release date. ah well. Afghan calendar. That may get changed in a short while, as there are plans for an official synchronized Persian calendar of Iran and Afghanistan that doesn't depend on a geographic base of a certain latitude and longitude. yes, geography will be the death of us all ;-)
Re: farsi calendar components
check http://emr.cs.iit.edu/home/reingold/calendar-book/second-edition/ Paul Hastings wrote: does anybody know of any java farsi calendar components? thanks. Paul Hastings [EMAIL PROTECTED] CTO Sustainable Development Research Institute Member Team Macromedia (ColdFusion)
farsi calendar components
does anybody know of any java farsi calendar components? thanks. Paul Hastings [EMAIL PROTECTED] CTO Sustainable Development Research Institute Member Team Macromedia (ColdFusion)