getLength method
Return the length that was used to construct this duration formatter object. If the length was not given as parameter to the constructor, this method returns the default length. Valid values are "short", "medium", "long", and "full".
Implementation
String getLength() {
String result = '';
final String formatOptions = toJsonString();
final String jscode1 = 'new DurationFmt($formatOptions).getLength()';
result = ILibJS.instance.evaluate(jscode1).stringResult;
return result;
}