Examveda

What does the advance method do for a Date object in Ruby?

A. Subtracts a specified number of days, months, or years from the Date object

B. Adds a specified number of seconds, minutes, or hours to the Date object

C. Adds a specified number of days, months, or years to the Date object

D. Subtracts a specified number of seconds, minutes, or hours from the Date object

Answer: Option C


Join The Discussion

Related Questions on Working with Dates and Times in Ruby