Vidyalelo
Ruby Programming · Q4

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 4

Q4

What is the purpose of the strptime method in Ruby?

A.
Converts a Date or Time object to a string
B.
Returns the day of the month of the Date or Time object
C.
Returns the month of the Date or Time object
D.
Parses a string into a Date or Time object using a specified format
Answer

Answer: Option D

Solution

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