public class DateUtil
extends java.lang.Object
构造器和说明 |
---|
DateUtil() |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
currentFixedSkewedTimeInRFC822Format() |
static java.lang.String |
formatAlternativeIso8601Date(java.util.Date date) |
static java.lang.String |
formatIso8601Date(java.util.Date date) |
static java.lang.String |
formatRfc822Date(java.util.Date date)
Formats Date to GMT string.
|
static long |
getFixedSkewedTimeMillis() |
static java.util.Date |
parseIso8601Date(java.lang.String dateString)
Parse a date string in the format of ISO 8601.
|
static java.util.Date |
parseRfc822Date(java.lang.String dateString)
Parses a GMT-format string.
|
static void |
setCurrentServerTime(long serverTime) |
public static java.lang.String formatRfc822Date(java.util.Date date)
date
- public static java.util.Date parseRfc822Date(java.lang.String dateString) throws java.text.ParseException
dateString
- java.text.ParseException
public static java.lang.String formatIso8601Date(java.util.Date date)
public static java.lang.String formatAlternativeIso8601Date(java.util.Date date)
public static java.util.Date parseIso8601Date(java.lang.String dateString) throws java.text.ParseException
dateString
- java.text.ParseException
public static long getFixedSkewedTimeMillis()
public static java.lang.String currentFixedSkewedTimeInRFC822Format()
public static void setCurrentServerTime(long serverTime)