09 2023 档案

摘要:查看子文件夹中的文件个数 find /home/test -type f -printf '%h\n' | sort | uniq -c /home/test 要查找的目录 -type 按文件类型查找 f:指普通文件 d:目录文件 -printf 打印输出 %h 文件目录 \n 新行 sort 排序 阅读全文
posted @ 2023-09-13 13:27 theSummerDay 阅读(326) 评论(0) 推荐(0) 编辑
摘要:@Scheduled生效条件 启动类加上注解@EnableScheduling 定时任务的类加上注解@Component或@Service等 定时任务的方法加上注解@Scheduled cron表达式 ┌───────────── second (0-59) │ ┌───────────── min 阅读全文
posted @ 2023-09-09 11:32 theSummerDay 阅读(761) 评论(0) 推荐(0) 编辑
摘要:## WEEK(date[,`mode`]) WEEK()函数会返回一个日期的周数,第2个参数`mode`可以指定一周是从`周日`开始还是`周一`开始,以及返回值的范围是 `[0, 53]` 还是 `[1, 53]`, 如果第2个参数缺失了,则使用系统变量`default_week_format`的 阅读全文
posted @ 2023-09-02 14:54 theSummerDay 阅读(3368) 评论(0) 推荐(1) 编辑
摘要:## toWeek(date[,mode]) 返回Date或DateTime的周数。两个参数形式可以指定星期是从星期日还是星期一开始,以及返回值应在0到53还是从1到53的范围内。如果省略了mode参数,则默认 模式为0。 |Mode |First day of week| Range| Week 阅读全文
posted @ 2023-09-01 16:48 theSummerDay 阅读(1148) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示