Methods

Class Index [+]

Quicksearch

When::CalendarTypes::PatternTableBasedLuniSolar

表引きにより実現する太陰太陽暦

  Luni-Solar calendar which uses year / month /day table

Public Instance Methods

_key_(date) click to toggle source

暦日表のキー取得

  date    : [y]
    y - 年

  returns : 暦日表のキー
     # File when/calendartypes.rb, line 359
359:     def _key_(date)
360:       rule = @rule_table[@entry_key]
361:       count, year = date[0].divmod(rule['Years'])
362:       return rule['Rule'][year][0]
363:     end
_sdn_(date) click to toggle source

年初の通日

  date    : [y]
    y - 年

  returns : 年初の通日
     # File when/calendartypes.rb, line 346
346:     def _sdn_(date)
347:       rule = @rule_table[@entry_key]
348:       count, year = date[0].divmod(rule['Years'])
349:       return @origin_of_LSD + rule['Rule'][year][1] + count * rule['Days']
350:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.