类 DateUtils
java.lang.Object
com.cdkjframework.license.util.DateUtils
-
构造器详细资料
-
DateUtils
public DateUtils()
-
-
方法详细资料
-
getCurrentDateForFile
获取当前时间- 返回:
- 时间
-
getTime
时间转换- 参数:
time
- 时间- 返回:
- 时间戳
- 抛出:
GlobalException
- 异常
-
getDate
获取时间- 返回:
- 时间
-
date2Str
时间戳转换成日期- 参数:
time
- 时间戳- 返回:
- 时间
-
date2Str
时间转换成字符串- 参数:
time
- 时间- 返回:
- 时间字符串
-
str2Date
字符串转换成时间- 参数:
time
- 时间字符串- 返回:
- 时间
- 抛出:
GlobalException
-
addYear
时间转换成字符串- 参数:
date
- 时间mount
- 添加的月数- 返回:
- 时间字符串
-
addYear
时间转换成字符串- 参数:
time
- 时间mount
- 添加的月数- 返回:
- 时间字符串
-
addMonth
添加月- 参数:
date
- 日期mount
- 月数- 返回:
- 日期
-
addMonth
获取指定时间增加指定月数后的时间- 参数:
time
- 时间mount
- 月数- 返回:
- 时间
-
addDay
添加月- 参数:
date
- 日期mount
- 月数- 返回:
- 日期
-
addDay
添加天- 参数:
time
- 时间戳mount
- 天数- 返回:
- 时间
-