Vidyalelo
Ruby Programming · Q35

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 35

Q35

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
Answer
D.
Sets the date of the DateTime object to the beginning of the month

Answer: Option C

Solution

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