Vidyalelo
Ruby Programming · Q17

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 17

Q17

What is the purpose of the zone method for a DateTime object in Ruby?

A.
Returns the time zone of the DateTime object
Answer
B.
Returns the time zone abbreviation of the DateTime object
C.
Returns the time zone offset of the DateTime object
D.
Returns the time zone ID of the DateTime object

Answer: Option A

Solution

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