How do I require and use a library from the Ruby Standard Library such as DateTime?
I'm using rvm. I created a new project and specified which version of Ruby I'd like (in this case 2.1.0) and gave the project its own Gemset.
mkdir proj
cd proj
rvm use ruby-2.1.0
rvm gemset create proj
echo 'ruby-2.1.0' > .ruby-version
echo 'proj' > .ruby-gemset
touch proj.rb
I'd like proj.rb to require DateTime, make a new instance of a DateTime object, then exit.