Skip to content

difference between time64 columns #3218

Answered by oleksiyskononenko
lmullany asked this question in Q&A
Discussion options

You must be logged in to vote

At some point we will add a new duration type, so that one could directly calculate difference between the time columns, or between the date columns.

However, what you're asking is possible to be done in datatable even now. That's because internally time64 column is stored as int64. So you can do something like that to calculate the number of minutes

DT["duration"] = DT[:, (dt.int64(dt.f.t2) - dt.int64(dt.f.t1))/(60*10**9)]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lmullany
Comment options

Answer selected by lmullany
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants