Рубин Количество недели
date = Date.new
week_number = date.strftime('%-V') # => (1-53)
Lioruby
date = Date.new
week_number = date.strftime('%-V') # => (1-53)