Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Hebrew date conversion library for Ruby
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
CHANGELOG
LICENSE
Manifest
README
README.rdoc
Rakefile

README.rdoc

Hebruby

Hebruby is a Ruby library to convert julian dates to hebrew dates, and vice-versa.

Written by Ron Evans (ron dot evans at gmail dot com or www.deadprogrammersociety.com).

Additional code contributed by Joshua Harvey.

Algorithm rewritten by Ken Bloom (kbloom@gmail.com) based on 'Calendrical Calculations' by Nachum Dershowitz and Edward M. Reingold, Cambridge University Press (1997), as implemented in emacs' lisp/calendar/cal-hebrew.el

How to install

sudo gem install hebruby

How to use:

require 'rubygems'
require 'hebruby'

@hb = Hebruby::HebrewDate.new(2,4,5728)
puts @hb.day # => 2
puts @hb.month # => 4
puts @hb.month_name # => Tamuz
puts @hb.heb_month_name # => תמוז
puts @hb.year # => 5728
puts @hb.heb_year_name # => התשכ"ח
puts @hb.jd # => 6/28/1968
Something went wrong with that request. Please try again.