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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9c473e546ce5c80e6f39d7e0502b5561?d=identicon&s=25 Rob Redmon (rredmon)
on 2009-04-30 13: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
irb(main):015:0> DateTime.now.to_time.class
=> DateTime
This topic is locked and can not be replied to.