Calculates pasaran day in Javanese calendar system.
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.
README
pasaran.rb
pasaran_spec.rb

README

Pasaran Extension for DateTime Class
====================================
by Wiriana Awiputra <rianawi at gmail dot com>

Pasaran is 5 'custom' days in Javanese calendar system just like 7 week days in solar calendar system. They are Pon, Wage, Kliwon, Legi, and Pahing. It was a mark for market (pasar) activity in Javanese culture. That's why people call them Pasaran.

Requirement
-----------
$ sudo gem install rspec

Installation
------------
$ git clone git://github.com/rianawi/pasaran.git
$ cd pasaran
$ spec pasaran_spec.rb

Examples
--------
$ irb
require 'pasaran'
=> true
DateTime.now.to_pasaran
=> "Selasa Kliwon"
DateTime.new(1979,1,8).to_pasaran
=> "Senin Pon"