![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
代码段
zwl夏木子
这个作者很懒,什么都没留下…
展开
-
php的时间段搜索器
public function searchTimeAttr($query, $value, $data) { $timeKey = $data['timeKey'] ?? 'add_time'; switch ($value){ case 'today': case 'week': case 'month': case 'year': c...原创 2021-03-16 14:31:34 · 123 阅读 · 0 评论 -
php获取季度时间段
if (!function_exists('getMonth')) { function getMonth(int $ceil = 0){ if ($ceil != 0){ $season = ceil(date('n') / 3) - $ceil; }else{ $season = ceil(date('n') / 3); } $firstday = date('Y-m-01', mk.原创 2021-03-16 14:11:36 · 574 阅读 · 0 评论