Forum: Ruby on Rails ActiveSupport DateTime.to_time (yesterday vs now)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Rob R. (Guest)
on 2009-04-30 15:36
What's so strikingly different between "yesterday" and "now"?

irb(main):010:0> require 'activesupport'
=> []
irb(main):014:0> DateTime.yesterday.to_time.class
=> Time
=> DateTime
This topic is locked and can not be replied to.