ok iam wory ther is my world very polici On Thu, Dec 3, 2009 at 4:44 AM, -روشنک <maryam.kamali.i...@gmail.com> wrote:
> good taime iam maryam my phone has danger there is iran i not wey > > On Dec 3, 2:11 pm, Colin Law <clan...@googlemail.com> wrote: > > 2009/12/3 Terry6004 <nish.pa...@hotmail.com>: > > > > > > > > > > > > > Terry6004 wrote: > > > > >> Hi Mr Sagar, > > > > >> I ran that query in my console and it returned an array of times etc > so i > > >> will post one line to you which is: > > > > >> #<BusTime id: 97, weekday: "thursday", time: "2000-01-01 11:29:00", > > >> created_at: nil, updated_at: nil> > > > > >> Please note that the time attribute is time:time not datetime but > rails > > >> still gives me 2000-01-01 for some reason > > > > There is no time of day class in ruby, the Time class (confusingly) > > includes the date, which seems to be set to 2000-01-01 if only a time > > of day is provided. Either you must cope with this in your > > application or you must store the time of day in some other form such > > as integer seconds into the day or as a string for example. > > > > Colin > > -- > > 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 rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com<rubyonrails-talk%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > -- 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 rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.