10 2021 档案

摘要:时间处理工具类搜集整理比较常用的时间工具类,记录一下。 1 /** 2 * LocalDateTime 转 时间 3 */ 4 public static String localDateTimeToDateTime(LocalDateTime localDateTime) { 5 return DateTime 阅读全文
posted @ 2021-10-30 11:50 七月的枫丶 阅读(97) 评论(0) 推荐(0) 编辑
摘要:"0x" + Integer.toHexString(hex); 阅读全文
posted @ 2021-10-30 11:20 七月的枫丶 阅读(89) 评论(0) 推荐(0) 编辑
摘要://循环执行任务,第一次延迟3秒执行,第二次开始每间隔5秒执行一次。最后一个参数是单位(时间) ScheduledExecutorService service = new ScheduledThreadPoolExecutor(Runtime.getRuntime().availableProce 阅读全文
posted @ 2021-10-18 00:24 七月的枫丶 阅读(253) 评论(0) 推荐(0) 编辑
摘要:TIMESTAMPDIFF|MySQL函数TIMSTAMPDIFF MySQL函数用于计算两个日期字段的差值,TIMESTAMPDIFF(unit,datetime_expr1,datetime_expr2),返回日期或时间表达式 datetime_expr1 和 datetime_expr2 之间的整数差。其结果的单位由 unit 参数给 阅读全文
posted @ 2021-10-14 15:12 七月的枫丶 阅读(665) 评论(0) 推荐(0) 编辑

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