Vidyalelo
Ruby Programming · Q32

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 32

Q32

What does the utc method do for a Time object in Ruby?

A.
Converts the Time object to the number of seconds since the Unix epoch
B.
Returns the time zone of the Time object
C.
Converts the Time object to the user's local time zone
D.
Converts the Time object to Coordinated Universal Time (UTC)
Answer

Answer: Option D

Solution

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