Examveda

What is the purpose of the advance method for a Time object in Ruby?

A. Subtracts a specified number of seconds, minutes, hours, days, months, or years from the Time object

B. Sets the Time object to the beginning of the current day

C. Adds a specified number of seconds, minutes, hours, days, months, or years to the Time object

D. Sets the Time object to the beginning of the current month

Answer: Option C


Join The Discussion

Related Questions on Working with Dates and Times in Ruby