/* Returns the year of the given datetime value. */ public static SchemaTypeNumber yearFromDuration(SchemaDuration value) { return new SchemaInt(value.isNegative() ? -value.getYear() : value.getYear()); }