Yes, you got it right. Basic functionality is all you do not need to use require .
DateTime doesn't seem to be in the kernel (you can run your line inside the rails console, maybe?)
DateTime.now # => # ~> -:1:in `<main>': uninitialized constant DateTime (NameError)
But there is time
Time
At the core are just a few Time methods. To get more functionality (e.g. Time.parse ), you should
require 'time'
source share