Vidyalelo
Ruby Programming · Q36

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 36

Q36

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

A.
Use the milliseconds_between method
B.
Use the difference method with the milliseconds option
C.
Use the delta method with the milliseconds option
D.
Subtract one Time object from another and multiply the result by 1000 to convert to milliseconds
Answer

Answer: Option D

Solution

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