refactor(time): 重构 DateTime 类并添加新功能
- 从 Java 文件中删除了旧的 DateTime 类 - 新增 Kotlin 版本的 DateTime 类,具有以下改进: - 添加了时间格式化枚举类 Formatter - 新增时间位移类 DateTimeOffset - 重构了 parse 和 format 方法,支持新的 Formatter 枚举 - 优化了文件时间转换方法,使用纳秒精度 - 删除了旧的 DateTimeJsonConverter 类
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* ProjectName mingli-utils
|
||||
* ModuleName mingli-utils.main
|
||||
* CurrentFile SystemUtil.kt
|
||||
* LastUpdate 2025-09-15 08:50:23
|
||||
* LastUpdate 2025-09-15 11:18:34
|
||||
* UpdateUser MingLiPro
|
||||
*/
|
||||
@file:JvmName("SystemUtils")
|
||||
@@ -66,7 +66,7 @@ fun isUnix(): Boolean {
|
||||
*
|
||||
* @return JDK版本号字符串
|
||||
*/
|
||||
fun getJdkVersion(): String {
|
||||
fun getJdkVersion(): String? {
|
||||
return System.getProperty("java.specification.version")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user