lib/koyomi/helper/date.rb
def nth_month_week
    _week = (self.day / WEEK_DAYS).to_i
    _fraction = (self.day % WEEK_DAYS)
    (_week + (_fraction == 0 ? 0 : 1))
  end
# nth week day of the month
#
# @return [Integer]
nth week day of the month
nth week day of the month
def nth_month_week
    _week = (self.day / WEEK_DAYS).to_i
    _fraction = (self.day % WEEK_DAYS)
    (_week + (_fraction == 0 ? 0 : 1))
  end
def nth_month_week _week = ( self . day / WEEK_DAYS ) . to_i _fraction = ( self . day % WEEK_DAYS ) ( _week + ( _fraction == 0 ? 0 : 1 ) ) end
nth week day of the month
nth week day of the month
None
Integer