Ruby-FFI bindings for the Calendar functionality of ICU.
gem install icu-calendar
sudo apt-get install ^libicu..$
require 'icu/calendar'
# Calendar for the default locale at the current time in the current timezone
ICU::Calendar.new
ICU::Calendar.new(locale: 'de_DE')
ICU::Calendar.new(time: Time.now - 300)
ICU::Calendar.new(timezone: 'America/New_York')
# Chinese calendar for the default locale
ICU::Calendar.new(locale: '@calendar=chinese')
calendar = ICU::Calendar.new
calendar[:year] # 2014
calendar.add(:month, 12)
calendar[:year] # 2015