Vidyalelo
Ruby Programming · Q12

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 12

Q12

How do you find the number of seconds since the Unix epoch for a Time object in Ruby?

A.
Use the epoch_seconds method
B.
Use the timestamp method
C.
Use the seconds_since_epoch method
D.
Use the to_i method
Answer

Answer: Option D

Solution

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