Examveda
Examveda

What does the strftime method do in Ruby when applied to a Time object?

A. Returns the year of the Time object

B. Formats a Time object into a string according to the specified format

C. Returns the day of the week of the Time object

D. Returns the year of the Time object

Answer: Option B


Join The Discussion

Related Questions on Working with Dates and Times in Ruby