类 DateUtil
java.lang.Object
net.sohelp.boot.common.utils.DateUtil
日期工具类
- 作者:
- Aaron Fung
-
方法概要
-
方法详细资料
-
getTime
获取当前时间,格式: HH:mm:ss- 返回:
- 当前时间字符串,格式为HH:mm:ss
-
getDateTime
获取当前时间,格式: yyyy-MM-dd HH:mm:ss- 返回:
- 当前日期时间字符串,格式为yyyy-MM-dd HH:mm:ss
-
getDate
获取当前日期,格式:yyyy-MM-dd- 返回:
- 当前日期字符串,格式为yyyy-MM-dd
-
format
根据指定格式获取当前日期时间- 参数:
format- 日期时间格式字符串- 返回:
- 格式化后的当前日期时间字符串
-