On Sep 25, 6:01 pm, Thorsten Müller <[EMAIL PROTECTED]> wrote:
> 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.

I just noticed that Gearóid originally used the @today variable, so I
was kind of thinking that he meant dates and not datetimes. Both would
work though, assuming the field "date" is just a date.
--~--~---------~--~----~------------~-------~--~----~
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