Examveda
Examveda

What is the purpose of the Time.now method in Ruby?

A. Returns the current time as the number of milliseconds since the Unix epoch

B. Returns the current time as the number of seconds since the Unix epoch

C. Returns the current time as a string

D. Returns the current time as a Time object

Answer: Option D


Join The Discussion

Related Questions on Working with Dates and Times in Ruby