Examveda
Examveda

How do you find the number of weeks in the current year in Ruby?

A. Time.now.weeks_in_year

B. DateTime.current.weeks_in_year

C. Date.today.weeks_in_year

D. Date.today.days_in_year

Answer: Option C


Join The Discussion

Related Questions on Working with Dates and Times in Ruby