Want to know how we get the time (in 14.Extend your knowledge)


#1

"It's #{Time.new.hour > 12 ? Time.new.hour - 12 : Time.new.hour}:#{Time.new.min} #{Time.new.hour > 12 ? 'PM' : 'AM'} (GMT)."


#2

SERP: Ruby Time class

from which we garnered,

Class: Time (Ruby 1.9.3)


#3

thanks................................ :wink: