Examveda

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: Option D


Join The Discussion

Related Questions on Working with Dates and Times in Ruby