> I think Date.today might be more logically correct than using
> Time.now, though.

Depends on some details. the results:

Date.today: "2008-09-25"
Time.now: "2008-09-25 11:56:21"

So Date.today would get you all records of today, including those from
the morning to now.
Time.now includes the time, ignoring the records at morning.

Somehow Time.now is a bit more often seen, but that may have any other
reason.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to