public class ISOHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.joda.time.DateTimeZone |
DEFAULT_DATE_TIME_ZONE
Default time zone for use in parsing, regardless of System or JDK's
default time zone.
|
Constructor and Description |
---|
ISOHelper() |
Modifier and Type | Method and Description |
---|---|
static org.joda.time.DateTime |
parseDateTime(Tuple input) |
public static final org.joda.time.DateTimeZone DEFAULT_DATE_TIME_ZONE
public static org.joda.time.DateTime parseDateTime(Tuple input) throws ExecException
input
- a non-null, non-empty Tuple,
whose first element is a ISO 8601 string representation of a date, time, or dateTime;
with optional time zone.ExecException
- if input is a malformed or empty tuple.
This method is public so that it can be tested in TestTruncateDateTime.
Otherwise, it would have "package" visibility.Copyright © 2007-2012 The Apache Software Foundation