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
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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs