类 DateUtils
java.lang.Object
com.baidu.mochow.util.DateUtils
Utilities for parsing and formatting dates.
Note that this class doesn't use static methods because of the synchronization issues with SimpleDateFormat. This lets synchronization be done on a per-object level, instead of on a per-class level.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringFormats the specified date as an ISO 8601 string.static StringformatRfc822Date(Date date) Formats the specified date as an RFC 822 string.
-
构造器详细资料
-
DateUtils
public DateUtils()
-
-
方法详细资料
-
formatAlternateIso8601Date
Formats the specified date as an ISO 8601 string.- 参数:
date- The date to format.- 返回:
- The ISO 8601 string representing the specified date.
-
formatRfc822Date
Formats the specified date as an RFC 822 string.- 参数:
date- The date to format.- 返回:
- The RFC 822 string representing the specified date.
-