Flowdock
method

nth_kday_to_jd

Importance_0
v1_9_1_378 - Show latest stable - 0 notes - Class: Date
nth_kday_to_jd(y, m, n, k, sg=GREGORIAN) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/date.rb, line 479
    def nth_kday_to_jd(y, m, n, k, sg=GREGORIAN) # :nodoc:
      j = if n > 0
            find_fdom(y, m, sg) - 1
          else
            find_ldom(y, m, sg) + 7
          end
      (j - (((j - k) + 1) % 7)) + 7 * n
    end
Register or log in to add new notes.