public static class FastDateFormat.FormatSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static FastDateFormat.FormatSpec |
ISO8601_MS
new FormatSpec("-","T",":",":",".",true,true); , e.g. |
static FastDateFormat.FormatSpec |
ISO8601_NO_MS
new FormatSpec("-","T",":",":",".",false,true); , e.g. |
Constructor and Description |
---|
FastDateFormat.FormatSpec(java.lang.String dateSep,
java.lang.String dateTimeSep,
java.lang.String timeSep,
java.lang.String zoneSep,
java.lang.String decimalPoint,
boolean useMs,
boolean useZ)
Constructs a format specification.
|
public static final FastDateFormat.FormatSpec ISO8601_MS
new FormatSpec("-","T",":",":",".",true,true);
, e.g. 2012-11-02T23:39:05.346-05:00public static final FastDateFormat.FormatSpec ISO8601_NO_MS
new FormatSpec("-","T",":",":",".",false,true);
, e.g. 2012-11-02T23:39:05-05:00public FastDateFormat.FormatSpec(java.lang.String dateSep, java.lang.String dateTimeSep, java.lang.String timeSep, java.lang.String zoneSep, java.lang.String decimalPoint, boolean useMs, boolean useZ)
dateSep
- separator between date and time, typically "-" or "".dateTimeSep
- separator between date and time, typically "T" or " ".timeSep
- separator between date and time, typically ":" or "".zoneSep
- separator between hours and minutes of zone offset, typically ":" or "".decimalPoint
- separator between seconds and milliseconds, typically ".", ",", or "".useMs
- whether to include milliseconds.useZ
- whether to specify the time zone +00:00 as "Z".