摘要: mysql 按时间段查询当天、本周,本月,上一个月的数据 今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 SELECT * FROM 表名 WHERE TO_DAYS( NOW( ) ) - TO_DAYS( 时间字段名) 阅读全文
posted @ 2021-04-14 17:42 Java9527 阅读(377) 评论(0) 推荐(0) 编辑
摘要: public static void testClock() throws InterruptedException { // 时钟提供给我们用于访问某个特定 时区的 瞬时时间、日期 和 时间的。 Clock c1 = Clock.systemUTC(); // 系统默认UTC时钟(当前瞬时时间 S 阅读全文
posted @ 2021-04-14 10:28 Java9527 阅读(46) 评论(0) 推荐(0) 编辑