Vidyalelo
Ruby Programming · Q18

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 18

Q18

How do you convert a Time object to the local time zone in Ruby?

A.
Use the timezone method
B.
Use the to_local method
C.
Use the convert_to_local method
D.
Use the localtime method
Answer

Answer: Option D

Solution

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