Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
convert unix timestamp to timestamp format
New Contributor
Created 12-01-2016 06:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
what is the sql query to convert unix timestamp in a column of table to julian or greg date format ?
1 ACCEPTED SOLUTION
New Contributor
Created 12-01-2016 10:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got figured it out, below query will convert the unix time to timestamp
select from_unixtime(cast(time/1000 as bigint)) from table_1;
time is the column name
1 REPLY 1
New Contributor
Created 12-01-2016 10:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Got figured it out, below query will convert the unix time to timestamp
select from_unixtime(cast(time/1000 as bigint)) from table_1;
time is the column name
