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
gem install hebruby
require 'hebruby' hebrew_date = Hebruby::HebrewDate.new(2, 4, 5728) puts hebrew_date.day # => 2 puts hebrew_date.month # => 4 puts hebrew_date.month_name # => Tamuz puts hebrew_date.heb_month_name # => תמוז puts hebrew_date.year # => 5728 puts hebrew_date.heb_year_name # => התשכ"ח puts hebrew_date.julian_date # => 1968-06-28