Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the from_unixtime SQL function #217

Merged
merged 1 commit into from
Jul 25, 2023
Merged

Implement the from_unixtime SQL function #217

merged 1 commit into from
Jul 25, 2023

Conversation

mwylde
Copy link
Member

@mwylde mwylde commented Jul 25, 2023

from_unixtime converts a nanosecond unix timestamp into a RFC3339 string, which can then be cast into a timestamp.

SELECT CAST(from_unixtime(time) as TIMESTAMP)
FROM orders

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@mwylde mwylde requested a review from jacksonrnewhouse July 25, 2023 00:12
@mwylde mwylde merged commit 8f73410 into master Jul 25, 2023
@mwylde mwylde deleted the from_unixtime branch July 25, 2023 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants