[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Parsing Islamic date

Peter Szinek

10/9/2006 7:23:00 AM

Hello all,

Is it possible to parse an Islamic date in Ruby by any means? I have
found nothing but this:

(from date.rb):

... Alternative calendars such as the Chinese Lunar Calendar, the
Islamic Calendar, or the French Revolutionary Calendar are not supported
by the Date class; ...

but no hint for the solution.

Any ideas?

Thanks,
Peter
http://www.rubyra...

2 Answers

eden li

10/9/2006 8:09:00 AM

0

Hrm, looking around it looks like there's not much out there for Ruby.

Maybe you can port the Perl version to Ruby?
http://search.cpan.org/src/APLEINER/Date_Hijri-0.0...

It doesn't look too hairy, and you could score community points by
posting it back to RAA or rubyforge or something.

Peter Szinek wrote:
> Is it possible to parse an Islamic date in Ruby by any means? I have
> found nothing but this:
>
> (from date.rb):
>
> ... Alternative calendars such as the Chinese Lunar Calendar, the
> Islamic Calendar, or the French Revolutionary Calendar are not supported
> by the Date class; ...


Richard Conroy

10/9/2006 10:00:00 AM

0

On 10/9/06, Peter Szinek <peter@rubyrailways.com> wrote:
> Hello all,
>
> Is it possible to parse an Islamic date in Ruby by any means? I have
> found nothing but this:

I would look at the various localization libraries for Ruby. Don't
know them off hand, but date/calendar localization is pretty important
for any l10n/i18n library.