diff --git a/matlab/src/matlab/+arrow/+type/TemporalType.m b/matlab/src/matlab/+arrow/+type/TemporalType.m index a3d093fb6dad9..9c0769c38e24a 100644 --- a/matlab/src/matlab/+arrow/+type/TemporalType.m +++ b/matlab/src/matlab/+arrow/+type/TemporalType.m @@ -17,10 +17,6 @@ classdef TemporalType < arrow.type.FixedWidthType - properties(Dependent, GetAccess=public, SetAccess=private) - TimeUnit - end - methods function obj = TemporalType(proxy) arguments @@ -28,10 +24,5 @@ end obj@arrow.type.FixedWidthType(proxy); end - - function timeUnit = get.TimeUnit(obj) - timeUnitValue = obj.Proxy.getTimeUnit(); - timeUnit = arrow.type.TimeUnit(timeUnitValue); - end end end \ No newline at end of file diff --git a/matlab/src/matlab/+arrow/+type/Time32Type.m b/matlab/src/matlab/+arrow/+type/Time32Type.m index 9d2c709ad3d18..b03f943b5b57e 100644 --- a/matlab/src/matlab/+arrow/+type/Time32Type.m +++ b/matlab/src/matlab/+arrow/+type/Time32Type.m @@ -17,6 +17,10 @@ classdef Time32Type < arrow.type.TemporalType + properties(Dependent, GetAccess=public, SetAccess=private) + TimeUnit + end + methods function obj = Time32Type(proxy) arguments @@ -26,6 +30,11 @@ obj@arrow.type.TemporalType(proxy); end + + function timeUnit = get.TimeUnit(obj) + timeUnitValue = obj.Proxy.getTimeUnit(); + timeUnit = arrow.type.TimeUnit(timeUnitValue); + end end methods (Access=protected) diff --git a/matlab/src/matlab/+arrow/+type/TimestampType.m b/matlab/src/matlab/+arrow/+type/TimestampType.m index 2333818208eca..cb47743148310 100644 --- a/matlab/src/matlab/+arrow/+type/TimestampType.m +++ b/matlab/src/matlab/+arrow/+type/TimestampType.m @@ -1,3 +1,5 @@ +%TIMESTAMPTYPE Type class for timestamp data. + % Licensed to the Apache Software Foundation (ASF) under one or more % contributor license agreements. See the NOTICE file distributed with % this work for additional information regarding copyright ownership. @@ -14,9 +16,9 @@ % permissions and limitations under the License. classdef TimestampType < arrow.type.TemporalType -%TIMESTAMPTYPE Type class for timestamp data. properties(Dependent, GetAccess=public, SetAccess=private) + TimeUnit TimeZone end @@ -29,6 +31,11 @@ obj@arrow.type.TemporalType(proxy); end + function timeUnit = get.TimeUnit(obj) + timeUnitValue = obj.Proxy.getTimeUnit(); + timeUnit = arrow.type.TimeUnit(timeUnitValue); + end + function tz = get.TimeZone(obj) tz = obj.Proxy.getTimeZone(); end