Skip to content

Commit

Permalink
Remove convertDurationToTicks method from Date32Array class.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingurney committed Aug 29, 2023
1 parent 50eb575 commit 01365d2
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions matlab/src/matlab/+arrow/+array/Date32Array.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
end

methods

function obj = Date32Array(proxy)
arguments
proxy(1, 1) libmexclass.proxy.Proxy {validate(proxy, "arrow.array.proxy.Date32Array")}
Expand All @@ -46,19 +47,11 @@
function times = datetime(obj)
times = obj.toMATLAB();
end
end

methods(Static, Access=private)
function ticks = convertDurationToTicks(data, timeUnit)
if (timeUnit == arrow.type.TimeUnit.Second)
ticks = cast(seconds(data), "int32");
else
ticks = cast(milliseconds(data), "int32");
end
end
end

methods(Static)

function array = fromMATLAB(data, opts)
arguments
data
Expand All @@ -79,6 +72,7 @@
proxy = arrow.internal.proxy.create("arrow.array.proxy.Date32Array", args);
array = Date32Array(proxy);
end

end

end

0 comments on commit 01365d2

Please sign in to comment.