@Deprecated public class ISO8601Utils extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected static int | DEF_8601_LENDeprecated.  | 
| Constructor and Description | 
|---|
| ISO8601Utils()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | format(Date date)Deprecated.  Format a date into 'yyyy-MM-ddThh:mm:ssZ' (default timezone, no milliseconds precision) | 
| static String | format(Date date,
      boolean millis)Deprecated.  Format a date into 'yyyy-MM-ddThh:mm:ss[.sss]Z' (GMT timezone) | 
| static String | format(Date date,
      boolean millis,
      TimeZone tz)Deprecated.  | 
| static String | format(Date date,
      boolean millis,
      TimeZone tz,
      Locale loc)Deprecated.  Format date into yyyy-MM-ddThh:mm:ss[.sss][Z|[+-]hh:mm] | 
| static Date | parse(String date,
     ParsePosition pos)Deprecated.  Parse a date from ISO-8601 formatted string. | 
public static String format(Date date)
date - the date to formatpublic static String format(Date date, boolean millis)
date - the date to formatmillis - true to include millis precision otherwise false@Deprecated public static String format(Date date, boolean millis, TimeZone tz)
public static String format(Date date, boolean millis, TimeZone tz, 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 Date parse(String date, ParsePosition pos) throws ParseException
date - ISO string to parse in the appropriate format.pos - The position to start parsing from, updated to where parsing stopped.ParseException - if the date is not in the appropriate formatCopyright © 2008–2019 FasterXML. All rights reserved.