Examveda

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: Option D


Join The Discussion

Related Questions on Working with Dates and Times in Ruby