Vidyalelo
Ruby Programming · Q19

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 19

Q19

Which method is used to calculate the difference in years between two Date objects in Ruby?

A.
years_between
B.
years_difference
C.
difference_in_years
Answer
D.
subtract_years

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board