public class Iso8601JdtFormatter extends AbstractFormatter
JdtFormatter uses ISO 8601 specification, enhanced by some
custom patterns. For more information see:
ISO 8601 on Wikipedia
Patterns list:
Patterns noted with + sign are used both for conversion and parsing. All patterns are used for conversion.
escapeChar, patterns| Constructor and Description |
|---|
Iso8601JdtFormatter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
convertPattern(int patternIndex,
JDateTime jdt)
Creates a date-time string for founded pattern.
|
protected void |
parseValue(int patternIndex,
java.lang.String value,
DateTimeStamp destination)
Parses value for matched pattern.
|
convert, detectSeparatorInPattern, findPattern, parse, preparePatterns, print2, print3, printPad4protected java.lang.String convertPattern(int patternIndex,
JDateTime jdt)
AbstractFormatterAbstractFormatter.patterns index.convertPattern in class AbstractFormatterpatternIndex - index of founded patternjdt - date time informationprotected void parseValue(int patternIndex,
java.lang.String value,
DateTimeStamp destination)
AbstractFormatterAbstractFormatter.patterns index.
Note that value may represent both integer and decimals.
May throw NumberFormatException.parseValue in class AbstractFormatterpatternIndex - index of founded patternvalue - value to parse, no spaces or tabsdestination - destination to modifyCopyright © 2003-present Jodd Team