2020-10-03 22:38:51 +00:00
|
|
|
SELECT
|
|
|
|
arrayJoin([1, 60, 60*60, 60*60*24, 60*60*24*30, 60*60*24*365]) AS elapsed,
|
|
|
|
formatReadableTimeDelta(elapsed*5.5) AS time_delta;
|
|
|
|
SELECT
|
2020-10-11 15:32:03 +00:00
|
|
|
'minutes' AS maximum_unit,
|
2020-10-03 22:38:51 +00:00
|
|
|
arrayJoin([1, 60, 60*60, 60*60*24, 60*60*24*30, 60*60*24*365]) AS elapsed,
|
|
|
|
formatReadableTimeDelta(elapsed*5.5, maximum_unit) AS time_delta;
|
|
|
|
SELECT
|
2020-10-11 15:32:03 +00:00
|
|
|
'hours' AS maximum_unit,
|
2020-10-03 22:38:51 +00:00
|
|
|
arrayJoin([1, 60, 60*60, 60*60*24, 60*60*24*30, 60*60*24*365]) AS elapsed,
|
|
|
|
formatReadableTimeDelta(elapsed*5.5, maximum_unit) AS time_delta;
|
|
|
|
SELECT
|
2020-10-11 15:32:03 +00:00
|
|
|
'days' AS maximum_unit,
|
2020-10-03 22:38:51 +00:00
|
|
|
arrayJoin([1, 60, 60*60, 60*60*24, 60*60*24*30, 60*60*24*365]) AS elapsed,
|
|
|
|
formatReadableTimeDelta(elapsed*5.5, maximum_unit) AS time_delta;
|
|
|
|
SELECT
|
2020-10-11 15:32:03 +00:00
|
|
|
'months' AS maximum_unit,
|
2020-10-03 22:38:51 +00:00
|
|
|
arrayJoin([1, 60, 60*60, 60*60*24, 60*60*24*30, 60*60*24*365]) AS elapsed,
|
|
|
|
formatReadableTimeDelta(elapsed*5.5, maximum_unit) AS time_delta;
|