0
我试图在一天内按小时筛选我的项目,但无法获得预期结果。API PHP - 筛选器项 - by created_on
我只想要一天中的最后两个小时,而且我每2个小时就通过cron工作。
我的代码:
$attributes = array();
$attributes['sort_by'] = 'titre';
$attributes['sort_desc'] = true;
$attributes['filters'] = array("created_on" =>array("from" => "2016-08-09 13:00:00","to" => "2016-08-09 15:00:00"));
$attributes['limit'] = 10;
$attributes['offset'] = 0;
$attributes['remember'] = false;
PodioItem::filter($myappid, $attributes, array());
这个例子应该给我只有一个结果,但它失败,给了我2016年8月9日当天的所有项目。是否有可能按日期/时间过滤?
对不起,我的英语水平
感谢您阅读我的问题
显示一些你已经取得的节目。 – HerrSerker
好吧,我把一些代码。 这是工作,但就像我说的不完全如我所愿 –