Package com.acanx.util
Class DateTimeUtil
java.lang.Object
com.acanx.util.DateTimeUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringlocalDateTimeToNsTs(LocalDateTime localDateTime) 将时间转换为纳秒级别的时间戳 Long类型static StringlocalDateTimeToUsTs(LocalDateTime localDateTime) 将时间转换为微秒级别的时间戳 Long类型
-
Constructor Details
-
DateTimeUtil
public DateTimeUtil()
-
-
Method Details
-
localDateTimeToUsTs
将时间转换为微秒级别的时间戳 Long类型- Parameters:
localDateTime- 时间参数- Returns:
- String 格式化后的字符串
-
localDateTimeToNsTs
将时间转换为纳秒级别的时间戳 Long类型- Parameters:
localDateTime- 时间- Returns:
- String 格式化后的字符串
-