@Deprecated
public class ISO8601Utils
extends java.lang.Object
Constructor and Description |
---|
ISO8601Utils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(java.util.Date date)
Deprecated.
Format a date into 'yyyy-MM-ddThh:mm:ssZ' (default timezone, no milliseconds precision)
|
static java.lang.String |
format(java.util.Date date,
boolean millis)
Deprecated.
Format a date into 'yyyy-MM-ddThh:mm:ss[.sss]Z' (GMT timezone)
|
static java.lang.String |
format(java.util.Date date,
boolean millis,
java.util.TimeZone tz)
Deprecated.
|
static java.lang.String |
format(java.util.Date date,
boolean millis,
java.util.TimeZone tz,
java.util.Locale loc)
Deprecated.
Format date into yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm]
|
static java.util.Date |
parse(java.lang.String date,
java.text.ParsePosition pos)
Deprecated.
Parse a date from ISO-8601 formatted string.
|
public static java.lang.String format(java.util.Date date)
date
- the date to formatpublic static java.lang.String format(java.util.Date date, boolean millis)
date
- the date to formatmillis
- true to include millis precision otherwise false@Deprecated public static java.lang.String format(java.util.Date date, boolean millis, java.util.TimeZone tz)
public static java.lang.String format(java.util.Date date, boolean millis, java.util.TimeZone tz, java.util.Locale loc)
date
- the date to formatmillis
- true to include millis precision otherwise falsetz
- timezone to use for the formatting (UTC will produce 'Z')public static java.util.Date parse(java.lang.String date, java.text.ParsePosition pos) throws java.text.ParseException
date
- ISO string to parse in the appropriate format.pos
- The position to start parsing from, updated to where parsing stopped.java.text.ParseException
- if the date is not in the appropriate format"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"