method

jd_to_weeknum

v1_9_2_180 - Show latest stable - Class: Date
jd_to_weeknum(jd, f=0, sg=GREGORIAN)
public

No documentation available.

# File lib/date.rb, line 472
    def jd_to_weeknum(jd, f=0, sg=GREGORIAN) # :nodoc:
      y, m, d = jd_to_civil(jd, sg)
      a = find_fdoy(y, sg) + 6
      w, d = (jd - (a - ((a - f) + 1) % 7) + 7).divmod(7)
      return y, w, d
    end