Having trouble with selecting the age of records from their creation date 
field *cdate*.  

puts DL[:yachts].
  select(Sequel.function(:age, :cdate, Time.now),
    cast(:interval)).
    extract(:hour).to_a

Tried this without the cast to :interval and it trips over the coercion to 
array:

puts DL[:yachts].
  select(Sequel.function(:age, :cdate, Time.now),
    extract(:hour).to_a

Not sure how to grab ages from a *creation_date* field.  

Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/2fca707a-c5ac-4cf2-8e47-955ce4e00e56n%40googlegroups.com.

Reply via email to