Vidyalelo
Ruby Programming · Q14

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 14

Q14

What does the utc_offset method return for a Time object in Ruby?

A.
Returns the time zone abbreviation of the Time object
B.
Returns the offset of the Time object from UTC in seconds
Answer
C.
Returns the time zone ID of the Time object
D.
None of the above

Answer: Option B

Solution

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