I am running into a uninitialized constant Context::DateTime error in Ruby. My code is:
# Print data about a list of Tweets
def print_timeline(tweets)
tweets.each do |tweet|
d = datetime.new(tweet['created_at'])
puts "#{tweet['user']['name']} , #{tweet['text']} , #{d.strftime('%m.%d.%y')} , #{tweet['id']}"
end
end
I believe it is saying it cannot find the DateTime class, and I am not sure why. I am new to Ruby.