Adds Hijri support to the Time class
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
Manifest
README.markdown
README.txt
Rakefile
hijri_gem-0.4.2.gem
hijri_gem.gemspec

README.markdown

How to use

# currently used for one-way conversion, more features soon
gregorian = Time.now # => 2011-03-26 00:59:51 -0400
hijri = gregorian.to_hijri # => 1432-04-22 00:59:51 -04:00
# "There is a small probability of one day error."

How to install

For ruby, just install the gem and require.

$ gem install hijri_gem
$ irb
$ irb(main):001:0> require 'rubygems'
$ irb(main):002:0> require 'hijri_gem'

For Rails 3 add the following line to your bundle and install.

gem 'hijri_gem'

Todo

  • Tests
  • Words