select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'DAYS') AS convertedTimefrom githubEventsLIMIT 1
id
created_at_timestamp
timeInMs
convertedTime
7044874109
2018-01-01 11:00:00.0
1514804400000
17532
select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'HOURS') AS convertedTimefrom githubEventsLIMIT 1
id
created_at_timestamp
timeInMs
convertedTime
7044874109
2018-01-01 11:00:00.0
1514804400000
420779
select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'SECONDS') AS convertedTimefrom githubEventsLIMIT 1
id
created_at_timestamp
timeInMs
convertedTime
7044874109
2018-01-01 11:00:00.0
1514804400000
1514804400
select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'MILLISECONDS') AS convertedTimefrom githubEventsLIMIT 1
id
created_at_timestamp
timeInMs
convertedTime
7044874109
2018-01-01 11:00:00.0
1514804400000
1514804400000
select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'MICROSECONDS') AS convertedTimefrom githubEventsLIMIT 1
id
created_at_timestamp
timeInMs
convertedTime
7044874109
2018-01-01 11:00:00.0
1514804400000
1514804400000000
select id, created_at_timestamp, cast(created_at_timestamp AS long) AS timeInMs, TIMECONVERT(created_at_timestamp, 'MILLISECONDS', 'NANOSECONDS') AS convertedTimefrom githubEventsLIMIT 1