* @return either a YearMonthDurationValue, or a ValidationFailure if the string was
* not in the lexical space of xs:yearMonthDuration.
*/
public static ConversionResult makeYearMonthDurationValue(CharSequence s) {
ConversionResult d = DurationValue.makeDuration(s, true, false);
if (d instanceof ValidationFailure) {
return d;
}
DurationValue dv = (DurationValue)d;
return YearMonthDurationValue.fromMonths((dv.getYears()*12 + dv.getMonths()) * dv.signum());