Vidyalelo
Ruby Programming · Q44

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 44

Q44

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

A.
Use the difference method with the days option
B.
Subtract one Time object from another
Answer
C.
Use the delta method with the days option
D.
None of the above

Answer: Option B

Solution

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