Vidyalelo
Ruby Programming · Q22

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 22

Q22

What is the purpose of the parse method for parsing dates in Ruby?

A.
Converts a Date object to a string
B.
Converts a Date object to the number of seconds since the Unix epoch
C.
Converts a Date object to a number of milliseconds since the Unix epoch
D.
Converts a string to a Date object
Answer

Answer: Option D

Solution

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