Vidyalelo
Ruby Programming · Q29

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 29

Q29

How do you find the number of days between two Date objects in Ruby?

A.
Use the delta method with the days option
B.
Use the difference method with the days option
C.
Subtract one Date object from another
Answer
D.
Use the days_between method

Answer: Option C

Solution

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