where('create_time','> time','2016-1-1');
// 大于某个时间
Db::table('think_user')->whereTime('birthday', '>=', '1970-10-1')->select();
// 小于某个时间
Db::table('think_user')->whereTime('birthday', '<', '2000-10-1')->select();
// 时间区间查询
Db::table('think_user')->whereTime('birthday', 'between', ['1970-10-1', '2000-10-1'])->select();但是我目前遇到的一个情况是,如果有两个时间字段需要查询,是用两个whereTime连接还是说,也可以像以前以样,把where里面改成数组查询,如果where查询方法,改成数据,是$map['ctime']=['> time','2016-1-1'];
$map['utime']=['> time','2016-1-1'];这种不?最佳答案