com.aliyun.mns.common.utils
类 DateUtil

java.lang.Object
  继承者 com.aliyun.mns.common.utils.DateUtil

public class DateUtil
extends Object

Util class for Date.


构造方法摘要
DateUtil()
           
 
方法摘要
static String formatAlternativeIso8601Date(Date date)
           
static String formatIso8601Date(Date date)
           
static String formatRfc822Date(Date date)
          Formats Date to GMT string.
static Date parseIso8601Date(String dateString)
          Parse a date string in the format of ISO 8601.
static Date parseRfc822Date(String dateString)
          Parses a GMT-format string.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DateUtil

public DateUtil()
方法详细信息

formatRfc822Date

public static String formatRfc822Date(Date date)
Formats Date to GMT string.

参数:
date -
返回:

parseRfc822Date

public static Date parseRfc822Date(String dateString)
                            throws ParseException
Parses a GMT-format string.

参数:
dateString -
返回:
抛出:
ParseException

formatIso8601Date

public static String formatIso8601Date(Date date)

formatAlternativeIso8601Date

public static String formatAlternativeIso8601Date(Date date)

parseIso8601Date

public static Date parseIso8601Date(String dateString)
                             throws ParseException
Parse a date string in the format of ISO 8601.

参数:
dateString -
返回:
抛出:
ParseException


Copyright © 2016. All Rights Reserved.