在webspider中,因此的日期都是UtilDate类型。 git
UtilDate构造方法: web
1.UtilDate (String date),使用默认模式构造日期。 ide
2.UtilDate (String pattern, String date),使用指定模式构造日期。 spa
返回日期方法: get
1.String toString(),以默认模式返回。 it
2.String toString(String pattern),以指定模式返回。 date
其余实用方法: 方法
boolean isMorning(),日期(UtilDate)是不是早上。 di
int getMinute(),返回分钟;String getTwoDigitMinute(),以2位字串的形式返回分钟;boolean onSameMinuteAs(WebDate date),若是当前时间与给定时间分钟相同,则返回true。 时间
小时、天、月、年有与分钟类似方法。
经常使用模式:
"dd/MM/yy-HH:mm" - 默认模式.