public class ZonedDateTimeConverter extends AbstractBaseConverter<ZonedDateTime>
String
into a ZonedDateTime
.
For a description of the format, see ZonedDateTime.parse(CharSequence)
.
Example:
@Parameter(names = { "--zonedDateTime" }, converter = ZonedDateTimeConverter.class)
private ZonedDateTime zonedDateTime;
ZonedDateTime
,
ZonedDateTime.parse(CharSequence)
failOnNull, targetClass
Constructor and Description |
---|
ZonedDateTimeConverter(String optionName)
Constructs a converter.
|
Modifier and Type | Method and Description |
---|---|
protected ZonedDateTime |
convertImpl(String value)
Converts a value.
|
convert, getErrorString, isSingle, newParameterException, newParameterException, split, toInt, toURI
public ZonedDateTimeConverter(String optionName)
optionName
- The option name, may be null.protected ZonedDateTime convertImpl(String value)
AbstractBaseConverter
convertImpl
in class AbstractBaseConverter<ZonedDateTime>
value
- the value to convertCopyright © 2016-2016 Gary Gregory. All Rights Reserved.
Use is subject to The Apache Software License, Version 2.0