0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Date arithmetic and calendar data from ICU
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.0

Runtime

>= 0
 Project Readme

ICU::Calendar

Ruby-FFI bindings for the Calendar functionality of ICU.

Build Status

Requirements

Installation

gem install icu-calendar

Ubuntu

sudo apt-get install ^libicu..$

Usage

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