当前位置:网站首页>hutool工具类的学习(持续更新)
hutool工具类的学习(持续更新)
2022-06-29 12:17:00 【coder chen】
https://www.hutool.cn/docs/#/
类型转换Convert
- 转换为字符串:int转字符串,数组转字符串
- 转换为指定类型数组:一个类型数组转另一个类型,例如string转int
- 转换为日期对象:String–>date
- 转换为集合:
- 编码转换:utf-8,GBK等
- 金额大小写转换
- 数字转换:数字-》英文,数字简化,数字-》中文,数字中文-》数字
- 原始类和包装类转换(java 不是有自动装箱,拆箱机制?)
- 自定义类型转换,可以自己扩展
日期时间
DateUtil
- Date,long,Calendar之间的相互转换
- 字符串转日期
- 格式化日期输出
- 获取Date对象的某个部分
- 开始和结束时间(周,月,年……)
- 日期时间偏移
- 日期时间差
- 格式化时间差
DateTime
- 使用DateTime对象可以完全替代开发中Date对象的使用。
农历日期-ChineseDate
- 传统节日,天干地支等
LocalDateTime
- 针对JDK8+日期API的封装,此工具类的功能包括
LocalDateTime和LocalDate的解析、格式化、转换
计时器工具 TimeInterval
- Hutool通过封装
TimeInterval实现计时器功能,即可以计算方法或过程执行的时间。
IO流相关
边栏推荐
- C#实现二叉树非递归中序遍历程序
- Recurrence of recommended models (IV): multi task models esmm and MMOE
- 2022.6.28-----leetcode. three hundred and twenty-four
- C # realize the hierarchical traversal of binary tree
- C # clue binary tree through middle order traversal
- How to calculate win/tai/loss in paired t-test
- 墨菲安全入选中关村科学城24个重点项目签约
- C # output the middle order traversal through the clue binary tree
- C#实现二叉树的先序遍历、中序遍历、后序遍历
- File contained log poisoning (user agent)
猜你喜欢

如何計算win/tai/loss in paired t-test

Murphy safety was selected for signing 24 key projects of Zhongguancun Science City

Hystrix断路器

Unexpected ‘debugger‘ statement no-debugger

Uncover the practice of Baidu intelligent test in the field of automatic test execution

Aes-128-cbc-pkcs7padding encrypted PHP instance

多项目开发入门-业务场景关联基础入门测试 工资表

倍福TwinCAT配置、调试第三方伺服详细讲解--以汇川IS620N为例子

How can colleges and universities build future oriented smart campus based on cloud native? Full stack cloud native architecture vs traditional IT architecture

Cache consistency, delete cache, write cache, cache breakdown, cache penetration, cache avalanche
随机推荐
Beifu PLC controls servo through CANopen communication
STK_GLTF模型
Blurred pictures become clear, one button two-color pictures, quickly organize local pictures These 8 online picture tools apply to join your favorites!
推荐模型复现(四):多任务模型ESMM、MMOE
C # realize the hierarchical traversal of binary tree
倍福PLC通过CANOpen通信控制伺服
Quick look | the long-awaited 2022 Guangzhou assistant testing engineer's real problem analysis is finally released
Difficult conversation breaks through the bottleneck of conversation and achieves perfect communication
qt json
C # implementation of binary tree non recursive middle order traversal program
C#实现二叉树的先序遍历、中序遍历、后序遍历
huffman编码
安装typescript环境并开启VSCode自动监视编译ts文件为js文件
Mysql database master-slave synchronization, consistency solution
2022.6.28-----leetcode.324
Cereal mall project
MIT linear algebra Chinese Notes
二十三、1-Bit数据的存储(延迟线/磁芯/DRAM/SRAM/磁带/磁盘/光盘/Flash SSD)
Pangolin compilation error: 'numeric_ limits’ is not a member of ‘std’
If I am in Shenzhen, where can I open an account? In addition, is it safe to open an account online now?