Examveda

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

A. Returns the time zone of the DateTime object

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


Join The Discussion

Related Questions on Working with Dates and Times in Ruby