utilityclasstest
v1.0.0
Published
params1:传入所需格式化的时间的时间戳,不传则默认为当前时间;params2:此参数用于需要返回的时间格式是何种
Downloads
4
Readme
version1.0.0
时间数据-相关的方法
按指定常规格式,获取当前日期或具体时间 s
方法名:dateFormat(time, format)
params1:传入所需格式化的时间的时间戳,不传则默认为当前时间;params2:此参数用于需要返回的时间格式是何种
params2 的模式:例如:yyyyMMddHHmmss
方法名:getBeforeTime(beforeDaysNum, format)
params1:传入所需指定多少前的天数;params2:此参数用于需要返回的时间格式是何种
params2 的模式:例如:yyyyMMddHHmmss
方法名:getDayCountOfMonth(year, month)
params1:传入指定年份;params2:传入指定月份