Commits


Kevin Gurney authored and GitHub committed ec1602c6719
GH-37231: [MATLAB] Add `arrow.type.Time32Type` class and `arrow.time32` construction function (#37250) ### Rationale for this change To support the addition of `arrow.array.Time32Array`, this pull request adds a new `arrow.type.Time32Type` class and associated `arrow.time32` construction function to the MATLAB interface. ### What changes are included in this PR? 1. New `arrow.type.Time32Type` class. 2. New `arrow.time32` construction function that returns an `arrow.type.Time32Type` instance. **Example** ```matlab >> type = arrow.time32(TimeUnit="Millisecond") type = Time32Type with properties: ID: Time32 TimeUnit: Millisecond >> class(type) ans = 'arrow.type.Time32Type' ``` ### Are these changes tested? Yes. 1. Added new tests for `Time32` type ID enumeration to `tID`. 2. Added a test class `tTimeUnit` for the new validation function `arrow.internal.validate.temporal.timeUnit`. 4. Added a new test class `tTime32Type`. ### Are there any user-facing changes? Yes. There are two new user-facing APIs: 1. `arrow.time32` construction function 2. `arrow.type.Time32Type` class ### Future Directions: 1. #37232 2. #37229 3. #37230 4. #37251 ### Notes 1. Thank you @ sgilmore10 for your help with this pull request! * Closes: #37231 Lead-authored-by: Kevin Gurney <kgurney@mathworks.com> Co-authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>