Methods

Class Index [+]

Quicksearch

When::CalendarTypes::ThaiB

The Calendar of central Thailand

Private Instance Methods

_sdn_(date) click to toggle source

年初の通日

  date    : [y]
    y - 年

  returns : 年初の通日
     # File when/region/thai.rb, line 166
166:       def _sdn_(date)
167:         y  = +date[0]
168:         e0,dir0  = _thai(y,  0)
169:         e1,dir1  = _thai(y+1,0)
170:         e0['T'] -= 1 if (e1['T'] - e0['T'] < YEAR_TYPE[dir0])
171:         return @day_epoch + e0['T'] - 29*2 - 30*2
172:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.