public class PeriodConverter extends Object implements Converter<org.joda.time.Period>
ISOPeriodFormat (standard, without millis).
Examples:
23s → Period.seconds(23)30m → Period.minutes(30)30h → Period.hours(30)30d → Period.days(30)2w → Period.weeks(2)1y → Period.years(1)ISOPeriodFormat| Constructor and Description |
|---|
PeriodConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.Period |
convertFrom(String value)
Returns a typed instance representing the specified
String value. |
String |
convertTo(org.joda.time.Period value)
Returns a
String instance representing the configuration parameter's value. |
public org.joda.time.Period convertFrom(String value)
ConverterString value.convertFrom in interface Converter<org.joda.time.Period>value - The configuration parameter's String valueCopyright © 2022. All rights reserved.