Sha256: 489cecc84ed9098167b839dffc8d71914497ee5a6dbcfbf719bb2d52bc4d8d24

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 KB

Contents

# -*- coding: utf-8 -*-
=begin
  Copyright (C) 2014 Takashi SUGA

  You may use and/or modify this file according to the license described in the LICENSE.txt file included in this archive.
=end

=begin

  References

 (1) http://calendars.wikia.com/wiki/Goddess_Lunar_Calendar
 (2) http://www.fractal-timewave.com/mmgc/mmgc.htm

=end

module When

  class BasicTypes::M17n

    Goddess = [self, [
      "locale:[=en:, ja]",
      "names:[Goddess=]",
      "[Goddess(MMG)=http://calendars.wikia.com/wiki/Goddess_Lunar_Calendar, ゴッデス暦, *alias:Goddess]",

      [self,
        "names:[Month]",
        "[Athena]", "[Brigid]", "[Cerridwen]", "[Diana ]",
        "[Epona ]", "[Freya ]", "[Gaea     ]", "[Hathor]",
        "[Inanna]", "[Juno  ]", "[Kore     ]", "[Lilith]",
        "[Maria ]"
      ]
    ]]
  end

  module CalendarTypes

    #
    # Goddess Calendar
    #
    Goddess =  [CyclicTableBased, {
      'label'         => 'Goddess::Goddess',
      'origin_of_LSC' => 2415611 - 180432,  # 1901-08-14 Base Cycle = No.1
      'indices'       => [
        When.Index({:unit=>470}),
        When.Index('Goddess::Month'),
        When::Coordinates::DefaultDayIndex,
      ],
      'rule_table' => {
        'T' => {'Rule'  =>(['L'] * 9 + ['S']) * 23 +
                          (['L'] * 4 + ['S']) *  2 +
                          (['L'] * 9 + ['S']) * 23},
        'L' => {'Length'=>[30, 29] * 6 + [30]},
        'S' => {'Length'=>[30, 29] * 6 + [29]}
      }
    }]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
when_exe-0.4.1 lib/when_exe/region/goddess.rb
when_exe-0.4.0 lib/when_exe/region/goddess.rb
when_exe-0.3.9 lib/when_exe/region/goddess.rb
when_exe-0.3.8 lib/when_exe/region/goddess.rb
when_exe-0.3.7 lib/when_exe/region/goddess.rb