* gYearMonth, gYear, gMonth, gMonthDay, or gDay
* @return either a value of the appropriate type, or a ValidationFailure if the format is invalid
*/
public static ConversionResult makeCalendarValue(CharSequence s) {
ConversionResult cr = DateTimeValue.makeDateTimeValue(s);
ConversionResult firstError = cr;
if (cr instanceof ValidationFailure) {
cr = DateValue.makeDateValue(s);
}
if (cr instanceof ValidationFailure) {
cr = TimeValue.makeTimeValue(s);