Methods

Class Index [+]

Quicksearch

When::CalendarTypes::ThaiC

The Calendar of Thai people in China

Public Instance Methods

songkran_(y) click to toggle source

ソンクラーン - 太陽の白羊宮入り

  y       : 年

  returns : ソンクラーンのユリウス日
    # File when/region/thai.rb, line 30
30:       def songkran_(y)
31:         e = _eph(y)
32:         return @day_epoch -1 + e['H'][0]
33:       end

Private Instance Methods

_sdn_(date) click to toggle source

年初の通日

  date    : [y]
    y - 年

  returns : 年初の通日
    # File when/region/thai.rb, line 80
80:       def _sdn_(date)
81:         y  = +date[0]
82:         e0 = _thai(y,  0)[0]
83:         e1 = _thai(y+1,0)[0]
84:         e0['T'] -= 1 if (e1['T']-e0['T'] == 353)
85:         return @day_epoch - 1 + e0['T'] - 30*3 - 29*2
86:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.