Skip to content
Discussion options

You must be logged in to vote

There should be an as_timestamp method on the column you can use for this (and then specify the unit that that int-column is representing (usually seconds)

[ins] In [14]: t
Out[14]: 
┏━━━━━━━━━━━━┓
┃ unix_time  ┃
┡━━━━━━━━━━━━┩
│ int64      │
├────────────┤
│ 1738692000 │
└────────────┘

[ins] In [15]: t.unix_time.as_timestamp("s")
Out[15]: 
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ TimestampFromUNIX(unix_time, SECOND) ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ timestamp                            │
├──────────────────────────────────────┤
│ 2025-02-04 18:00:00                  │
└──────────────────────────────────────┘

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gforsyth
Comment options

Answer selected by ScottWilliamAnderson
@ScottWilliamAnderson
Comment options

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