APIdock / Ruby
/
method

weeknum

ruby latest stable - Class: Date

Method not available on this version

This method is only available on newer versions. The first available version (v1_8_6_287) is shown here.

weeknum(y=1582, w=41, d=5, f=0, sg=ITALY)
private

No documentation available.

# File lib/date.rb, line 755
 def self.weeknum(y=1582, w=41, d=5, f=0, sg=ITALY) # :nodoc:
 unless jd = valid_weeknum?(y, w, d, f, sg)
 raise ArgumentError, 'invalid date'
 end
 new!(jd_to_ajd(jd, 0, 0), 0, sg)
 end

AltStyle によって変換されたページ (->オリジナル) /