@ThreadSafe public class DateUtils extends Object
| Constructor | Description |
|---|---|
DateUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static Date |
cloneDate(Date date) |
|
static String |
formatIso8601Date(Date date) |
Formats the specified date as an ISO 8601 string.
|
static String |
formatIso8601Date(org.joda.time.DateTime date) |
Formats the specified date as an ISO 8601 string.
|
static String |
formatRfc822Date(Date date) |
Formats the specified date as an RFC 822 string.
|
static String |
formatServiceSpecificDate(Date date) |
Formats the give date object into an AWS Service format.
|
static long |
numberOfDaysSinceEpoch(long milliSinceEpoch) |
Returns the number of days since epoch with respect to the given number
of milliseconds since epoch.
|
static Date |
parseCompressedIso8601Date(String dateString) |
Parses the specified date string as a compressedIso8601DateFormat ("yyyyMMdd'T'HHmmss'Z'") and returns the Date
object.
|
static Date |
parseIso8601Date(String dateString) |
Parses the specified date string as an ISO 8601 date and returns the Date
object.
|
static Date |
parseRfc822Date(String dateString) |
Parses the specified date string as an RFC 822 date and returns the Date
object.
|
static Date |
parseServiceSpecificDate(String dateString) |
Parses the given date string returned by the AWS service into a Date
object.
|
public static Date parseIso8601Date(String dateString)
dateString - The date string to parse.public static String formatIso8601Date(Date date)
date - The date to format.public static String formatIso8601Date(org.joda.time.DateTime date)
date - the date to formatpublic static Date parseRfc822Date(String dateString)
dateString - The date string to parse.public static String formatRfc822Date(Date date)
date - The date to format.public static Date parseCompressedIso8601Date(String dateString)
dateString - The date string to parse.public static Date parseServiceSpecificDate(String dateString)
public static String formatServiceSpecificDate(Date date)
public static long numberOfDaysSinceEpoch(long milliSinceEpoch)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.