Class | Description |
---|---|
BetweenFormater |
时长格式化器
|
DateBetween |
日期间隔
|
DatePattern |
日期格式化类,提供常用的日期格式化对象
|
DateTime |
包装java.util.Date
|
SystemClock |
系统时钟
高并发场景下System.currentTimeMillis()的性能问题的优化 System.currentTimeMillis()的调用比new一个普通对象要耗时的多(具体耗时高出多少我还没测试过,有人说是100倍左右) System.currentTimeMillis()之所以慢是因为去跟系统打了一次交道 后台定时更新时钟,JVM退出时,线程自动回收 |
Enum | Description |
---|---|
BetweenFormater.Level |
格式化等级枚举
|
DateField |
日期各个部分的枚举
与Calendar相应值对应 |
DateUnit |
日期时间单位,每个单位都是以毫秒为基数
|
Month |
月份枚举
与Calendar中的月份int值对应 |
Quarter |
季度枚举
|
Season | Deprecated
请使用
Quarter 代替 |
Week |
星期枚举
与Calendar中的星期int值对应 |
Copyright © 2020. All rights reserved.