com.openshift.client.utils
Class RFC822DateUtils
java.lang.Object
com.openshift.client.utils.RFC822DateUtils
public class RFC822DateUtils
- extends Object
- Author:
- André Dietisheim
Method Summary |
static Date |
getDate(String rfc822DateString)
Returns a date instance for a given timestamp string that complies to the
RFC 822 standard |
static String |
getString(Date date)
|
static Date |
safeGetDate(String rfc822DateString)
Returns a date instance for a given timestamp string that complies to the
RFC 822 standard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RFC822DateUtils
public RFC822DateUtils()
getDate
public static Date getDate(String rfc822DateString)
throws DatatypeConfigurationException
- Returns a date instance for a given timestamp string that complies to the
RFC 822 standard
- Parameters:
rfc822DateString
-
- Returns:
-
- Throws:
DatatypeConfigurationException
safeGetDate
public static Date safeGetDate(String rfc822DateString)
- Returns a date instance for a given timestamp string that complies to the
RFC 822 standard. If an error occurrs,
null
is returned an
no exception is thrown.
- Parameters:
rfc822DateString
-
- Returns:
getString
public static String getString(Date date)
throws DatatypeConfigurationException
- Throws:
DatatypeConfigurationException
Copyright © 2014 JBoss, a division of Red Hat, Inc.. All Rights Reserved.