Vidyalelo
Ruby Programming · Q42

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 42

Q42

What does the ago method do for a Time object in Ruby?

A.
Returns a new Time object representing the time in the future
B.
Returns a new Time object representing the current time
C.
Adds a specified duration to the Time object
D.
Subtracts a specified duration from the Time object
Answer

Answer: Option D

Solution

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