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