Simple types / Date and time

require 'date'

now = DateTime.now
year = now.year
month = now.month
day = now.day
hour = now.hour
minute = now.minute
second = now.second
dayOfWeek = now.wday

puts "now is '#{now}'"
puts "year is #{year}"
puts "month is #{month}"
puts "day is #{day}"
puts "hour is #{hour}"
puts "minute is #{minute}"
puts "second is #{second}"
puts "dayOfWeek is #{dayOfWeek}"