ruby - Sequel way of selecting all records of specific date -



ruby - Sequel way of selecting all records of specific date -

what's best way select records of specific date in sequel ignoring time?

writing clause range day's 0 23:59 seems unlike it. other way do?

use:

post.where(:created_at => (date.beginning_of_day..date.end_of_day))

where date date object

ruby sequel

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -