摘要: 用php获取本周、本月第一天与最后天时间戳。 1,获取今天的时间范围: 2,获取本周第一天/最后一天的时间戳 3,获取本月第一天/最后一天的时间戳 计算时间差 $one = strtotime('2011-12-08 07:02:40');//开始时间 时间戳$tow = strtotime('20 阅读全文
posted @ 2018-05-04 19:22 亦星 阅读(1270) 评论(0) 推荐(0) 编辑
摘要: SELECT r.realname ,r.start_time,r.end_time,sum(case when r.dintype=1 then 1 else 0 end) as 'zhong',sum(case when r.dintype=2 then 1 else 0 end) as 'wa 阅读全文
posted @ 2018-05-04 19:19 亦星 阅读(168) 评论(0) 推荐(0) 编辑