Examveda

What does the at_beginning_of_day method do for a DateTime object in Ruby?

A. Sets the time of the DateTime object to 23:59:59

B. Sets the date of the DateTime object to the beginning of the year

C. Sets the time of the DateTime object to 00:00:00

D. Sets the date of the DateTime object to the beginning of the month

Answer: Option C


Join The Discussion

Related Questions on Working with Dates and Times in Ruby