Vidyalelo
Ruby Programming · Q6

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 6

Q6

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

Answer: Option D

Solution

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