7.1. Determining the Current TimeThe most fundamental problem in time/date manipulation is to answer the question: What is the time and date right now? In Ruby, when we create a Time object with no parameters, it is set to the current date and time. t0 = Time.new Time.now is a synonym: t0 = Time.now Note that the resolution of system clocks varies from one architecture to another. It may include microseconds in which case two Time objects created in succession may actually record different times. |