public class TimestampParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TimestampParser.MillisDateFormatParser
DateTimeParser to parse the date string as the millis since Unix epoch
|
Modifier and Type | Field and Description |
---|---|
protected org.joda.time.format.DateTimeFormatter |
fmt |
protected String[] |
formatStrings |
protected static String |
millisFormatString |
protected static org.joda.time.DateTime |
startingDateValue |
protected static String[] |
stringArray |
Constructor and Description |
---|
TimestampParser() |
TimestampParser(List<String> formatStrings) |
TimestampParser(String[] formatStrings) |
TimestampParser(TimestampParser tsParser) |
protected static final String[] stringArray
protected static final String millisFormatString
protected static final org.joda.time.DateTime startingDateValue
protected String[] formatStrings
protected org.joda.time.format.DateTimeFormatter fmt
public TimestampParser()
public TimestampParser(TimestampParser tsParser)
public TimestampParser(String[] formatStrings)
public Timestamp parseTimestamp(String strValue) throws IllegalArgumentException
strValue
- IllegalArgumentException
- if input string cannot be parsed into timestampCopyright © 2017 The Apache Software Foundation. All rights reserved.