Package de.uplanet.util
Class ISODateTimeUtil
java.lang.Object
de.uplanet.util.ISODateTimeUtil
The static methods of this class are thread-safe.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringformatISODateTime(Instant p_dt) Format the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').static StringformatISODateTime(Date p_dt) Format the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').static StringFormat the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').static StringformatISODateTimeMillis(Date p_dt) Format the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').static ISODateTimeUtil.InstanceDeprecated.The static methods of this class are thread-safe so there is no need to create an instance of this utility.static DateparseISODateTime(String p_str) Parse the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').static DateparseISODateTimeMillis(String p_str) Parse the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').static DateParse the given date in the standard UTC ISO format, with optional milliseconds (eitheryyyy-MM-dd'T'HH:mm:ss'Z', oryyyy-MM-dd'T'HH:mm:ss.SSS'Z').
- 
Field Details- 
UTC_ISO_DATE_TIME_FORMATThe standard ISO UTC formatyyyy-MM-dd'T'HH:mm:ss'Z'.- See Also:
 
- 
UTC_ISO_DATE_TIME_FORMAT_MILLISThe standard ISO UTC format with millisecondsyyyy-MM-dd'T'HH:mm:ss.SSS'Z'.- See Also:
 
 
- 
- 
Method Details- 
newInstanceDeprecated.The static methods of this class are thread-safe so there is no need to create an instance of this utility.Create an instance of the ISO date time utility.- Returns:
- A new instance of the utility.
 
- 
formatISODateTimeFormat the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').- Parameters:
- p_dt- The date to be formatted.
- Returns:
- The formatted date.
 
- 
formatISODateTimeMillisFormat the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').- Parameters:
- p_dt- The date to be formatted.
- Returns:
- The formatted date.
 
- 
formatISODateTimeFormat the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').- Parameters:
- p_dt- The date to be formatted.
- Returns:
- The formatted date.
 
- 
formatISODateTimeMillisFormat the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').- Parameters:
- p_dt- The date to be formatted.
- Returns:
- The formatted date.
 
- 
parseISODateTimeParse the given date in the standard UTC ISO format (yyyy-MM-dd'T'HH:mm:ss'Z').- Parameters:
- p_str- The date to be parsed, e.g.- 2013-12-24T17:00:00Z.
- Returns:
- The parsed date.
 
- 
parseISODateTimeMillisParse the given date in the standard UTC ISO format, with milliseconds (yyyy-MM-dd'T'HH:mm:ss.SSS'Z').- Parameters:
- p_str- The date to be parsed, e.g.- 2013-12-24T17:00:00.123Z.
- Returns:
- The parsed date.
 
- 
parseISODateTimeOptionalMillisParse the given date in the standard UTC ISO format, with optional milliseconds (eitheryyyy-MM-dd'T'HH:mm:ss'Z', oryyyy-MM-dd'T'HH:mm:ss.SSS'Z').- Parameters:
- p_str- The date to be parsed, e.g.- 2013-12-24T17:00:00.123Z.
- Returns:
- The parsed date.
 
 
- 
ISODateTimeUtil.