Commits


sgilmore10 authored and GitHub committed 0513097ca31
GH-36735 : Add `TimeUnit` and `TimeZone` to the `arrow.type.TimestampType` display (#36871) ### Rationale for this change The `arrow.type.TimestampType` display should include the `TimeUnit` and `TimeZone` properties. Right now we only display the `ID` property: ```matlab >> type = arrow.type.timestamp(TimeUnit="Second", TimeZone="America/Anchorage") type = TimestampType with properties: ID: Timestamp ``` We should show the other two properties in the display. ### What changes are included in this PR? Modified the display of `TimestampType`: ```matlab >> type = arrow.type.timestamp(TimeUnit="Second", TimeZone="America/Anchorage") type = TimestampType with properties: ID: Timestamp TimeUnit: Second TimeZone: "America/Anchorage" ``` Now `TimeUnit` and `TimeZone` are included. ### Are these changes tested? Added a test case to `tTimestampType` called `Display`. It verifies `TimestampType` objects are displayed correctly in the Command Window. ### Are there any user-facing changes? Yes, users will see the new display. * Closes: #36735 Authored-by: Sarah Gilmore <sgilmore@mathworks.com> Signed-off-by: Kevin Gurney <kgurney@mathworks.com>